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;
|
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 = ''
|
configureFlags = ''
|
||||||
--enable-password-save
|
--enable-password-save
|
||||||
--enable-iproute2
|
'' + optionalString stdenv.isLinux ''
|
||||||
--enable-systemd
|
--enable-systemd
|
||||||
|
--enable-iproute2
|
||||||
IPROUTE=${iproute}/sbin/ip
|
IPROUTE=${iproute}/sbin/ip
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user