diff options
author | Janne Heß <janne@hess.ooo> | 2022-01-24 15:51:36 +0100 |
---|---|---|
committer | Janne Heß <janne@hess.ooo> | 2022-01-24 16:22:57 +0100 |
commit | 3fb41650985708c483cc1470a7a3122c36b71405 (patch) | |
tree | 4a7a6030687d32d7264f842622fe775ffe060be9 /pkgs/tools/networking/libreswan | |
parent | bb141a865f62f9b1b00a954225c0c3eb7a500e43 (diff) | |
download | nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar.gz nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar.bz2 nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar.lz nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar.xz nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.tar.zst nixpkgs-3fb41650985708c483cc1470a7a3122c36b71405.zip |
libreswan: Fix ExecStopPost paths
Diffstat (limited to 'pkgs/tools/networking/libreswan')
-rw-r--r-- | pkgs/tools/networking/libreswan/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/tools/networking/libreswan/default.nix b/pkgs/tools/networking/libreswan/default.nix index 6062b1ecfff..4df0471bbd8 100644 --- a/pkgs/tools/networking/libreswan/default.nix +++ b/pkgs/tools/networking/libreswan/default.nix @@ -14,6 +14,7 @@ , curl , nspr , bash +, runtimeShell , iproute2 , iptables , procps @@ -71,8 +72,9 @@ stdenv.mkDerivation rec { prePatch = '' # Correct iproute2 and iptables path - sed -e 's|/sbin/ip|${iproute2}/bin/ip|' \ + sed -e 's|/sbin/ip|${iproute2}/bin/ip|g' \ -e 's|/sbin/\(ip6\?tables\)|${iptables}/bin/\1|' \ + -e 's|/bin/bash|${runtimeShell}|g' \ -i initsystems/systemd/ipsec.service.in \ programs/barf/barf.in \ programs/verify/verify.in |