openfortivpn: format
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, openssl
|
||||
, ppp
|
||||
, systemd
|
||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
||||
, withPpp ? stdenv.hostPlatform.isLinux
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
autoreconfHook,
|
||||
pkg-config,
|
||||
openssl,
|
||||
ppp,
|
||||
systemd,
|
||||
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
||||
withPpp ? stdenv.hostPlatform.isLinux,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -27,21 +28,26 @@ stdenv.mkDerivation rec {
|
||||
--replace '$(DESTDIR)$(confdir)' /tmp
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
]
|
||||
++ lib.optional withSystemd systemd
|
||||
++ lib.optional withPpp ppp;
|
||||
buildInputs =
|
||||
[
|
||||
openssl
|
||||
]
|
||||
++ lib.optional withSystemd systemd
|
||||
++ lib.optional withPpp ppp;
|
||||
|
||||
configureFlags = [
|
||||
"--sysconfdir=/etc"
|
||||
]
|
||||
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd"
|
||||
# configure: error: cannot check for file existence when cross compiling
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--disable-proc";
|
||||
configureFlags =
|
||||
[
|
||||
"--sysconfdir=/etc"
|
||||
]
|
||||
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd"
|
||||
# configure: error: cannot check for file existence when cross compiling
|
||||
++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--disable-proc";
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user