mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-15 04:17:53 +00:00
openvpn: Allow building on non-Linux systems
This commit is contained in:
parent
0ff2240da3
commit
17044e0e71
@ -12,12 +12,14 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = optional stdenv.isLinux ./systemd-notify.patch;
|
||||
|
||||
buildInputs = [ iproute lzo openssl pam pkgconfig ] ++ optional stdenv.isLinux systemd;
|
||||
buildInputs = [ lzo openssl pkgconfig ]
|
||||
++ optionals stdenv.isLinux [ pam systemd iproute ];
|
||||
|
||||
configureFlags = ''
|
||||
--enable-password-save
|
||||
--enable-iproute2
|
||||
'' + optionalString stdenv.isLinux ''
|
||||
--enable-systemd
|
||||
--enable-iproute2
|
||||
IPROUTE=${iproute}/sbin/ip
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user