Skip to content

Commit

Permalink
strongswan: set --sysconfdir=/etc
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCao committed Dec 6, 2024
1 parent 5046bae commit fec7473
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions pkgs/by-name/st/strongswan/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ stdenv.mkDerivation rec {
'';

configureFlags =
[ "--enable-swanctl"
[
"--sysconfdir=/etc"
"--enable-swanctl"
"--enable-cmd"
"--enable-openssl"
"--enable-eap-sim" "--enable-eap-sim-file" "--enable-eap-simaka-pseudonym"
Expand Down Expand Up @@ -93,10 +95,9 @@ stdenv.mkDerivation rec {
"--disable-scripts"
];

postInstall = ''
# this is needed for l2tp
echo "include /etc/ipsec.secrets" >> $out/etc/ipsec.secrets
'';
installFlags = [
"sysconfdir=${placeholder "out"}/etc"
];

NIX_LDFLAGS = lib.optionalString stdenv.cc.isGNU "-lgcc_s" ;

Expand Down

0 comments on commit fec7473

Please sign in to comment.