mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
openfortivpn: fix on darwin (#142854)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com> Co-authored-by: Mert <pvtmert@users.noreply.github.com>
This commit is contained in:
parent
a4a3ef1016
commit
3f870c16df
1 changed files with 11 additions and 10 deletions
|
@ -1,11 +1,11 @@
|
|||
{ stdenv, lib, fetchFromGitHub, autoreconfHook, pkg-config
|
||||
, openssl, ppp
|
||||
, systemd ? null }:
|
||||
, openssl
|
||||
, ppp
|
||||
, systemd
|
||||
, withSystemd ? stdenv.isLinux
|
||||
, withPpp ? stdenv.isLinux
|
||||
}:
|
||||
|
||||
let
|
||||
withSystemd = stdenv.isLinux && !(systemd == null);
|
||||
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "openfortivpn";
|
||||
version = "1.17.1";
|
||||
|
@ -26,15 +26,16 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
openssl ppp
|
||||
openssl
|
||||
]
|
||||
++ lib.optional withSystemd systemd;
|
||||
++ lib.optional withSystemd systemd
|
||||
++ lib.optional withPpp ppp;
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
"--with-pppd=${ppp}/bin/pppd"
|
||||
]
|
||||
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system";
|
||||
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue