openfortivpn: fix cross builds

Co-authored-by: Michael Jenny <michael.jenny@projekt-und-partner.de>
This commit is contained in:
misuzu
2024-12-15 11:50:51 +02:00
co-authored by Michael Jenny
parent 5d67ea6b4b
commit 647a87e4b1
+3 -1
View File
@@ -39,7 +39,9 @@ stdenv.mkDerivation rec {
"--sysconfdir=/etc"
]
++ lib.optional withSystemd "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
++ lib.optional withPpp "--with-pppd=${ppp}/bin/pppd";
++ 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;