diff --git a/pkgs/tools/networking/openvpn/default.nix b/pkgs/tools/networking/openvpn/default.nix index f5e4a1531734..6f7b72c1f1c1 100644 --- a/pkgs/tools/networking/openvpn/default.nix +++ b/pkgs/tools/networking/openvpn/default.nix @@ -15,9 +15,7 @@ stdenv.mkDerivation rec { buildInputs = [ lzo openssl pkgconfig ] ++ optionals stdenv.isLinux [ pam systemd iproute ]; - configureFlags = '' - --enable-password-save - '' + optionalString stdenv.isLinux '' + configureFlags = optionalString stdenv.isLinux '' --enable-systemd --enable-iproute2 IPROUTE=${iproute}/sbin/ip