about summary refs log tree commit diff
path: root/pkgs/tools/networking/openvpn
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-11-16 20:34:56 -0800
committerJohn Wiegley <johnw@newartisans.com>2015-11-16 20:34:56 -0800
commit17044e0e715e5312078f508ee21a50334390b20f (patch)
treef39ea5fb3ceebfc2e6ce7fa4e1837e7c351ab294 /pkgs/tools/networking/openvpn
parent0ff2240da3856c37bf04439f032a0e789507776b (diff)
downloadnixlib-17044e0e715e5312078f508ee21a50334390b20f.tar
nixlib-17044e0e715e5312078f508ee21a50334390b20f.tar.gz
nixlib-17044e0e715e5312078f508ee21a50334390b20f.tar.bz2
nixlib-17044e0e715e5312078f508ee21a50334390b20f.tar.lz
nixlib-17044e0e715e5312078f508ee21a50334390b20f.tar.xz
nixlib-17044e0e715e5312078f508ee21a50334390b20f.tar.zst
nixlib-17044e0e715e5312078f508ee21a50334390b20f.zip
openvpn: Allow building on non-Linux systems
Diffstat (limited to 'pkgs/tools/networking/openvpn')
-rw-r--r--pkgs/tools/networking/openvpn/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/networking/openvpn/default.nix b/pkgs/tools/networking/openvpn/default.nix
index 5b95dd159bff..e7176ba90b3b 100644
--- a/pkgs/tools/networking/openvpn/default.nix
+++ b/pkgs/tools/networking/openvpn/default.nix
@@ -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
   '';