diff options
author | Alyssa Ross <hi@alyssa.is> | 2021-11-03 19:46:20 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2021-11-03 21:34:05 +0000 |
commit | ab9ecf61c70d445fdcfdf47ae6a8629767304cde (patch) | |
tree | d7e7d5d51c3f0b2630a8419a5db90a93de135367 /pkgs/tools/networking/vpnc/default.nix | |
parent | f92500945f316fd59edc8387039d7a1872f48f6a (diff) | |
download | nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar.gz nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar.bz2 nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar.lz nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar.xz nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.tar.zst nixpkgs-ab9ecf61c70d445fdcfdf47ae6a8629767304cde.zip |
vpnc: remove unnecessary patch
We can make the same changes much less invasively using normal Nixpkgs stuff. This would make it easier to switch to the actively maintained fork[1] in future. The use of $(out)/etc instead of /etc is a bit questionable, but I don't want to change any behaviour in this patch so I'm leaving it alone for now. [1]: https://davidepucci.it/doc/vpnc/
Diffstat (limited to 'pkgs/tools/networking/vpnc/default.nix')
-rw-r--r-- | pkgs/tools/networking/vpnc/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/tools/networking/vpnc/default.nix b/pkgs/tools/networking/vpnc/default.nix index 6928bacd6ce..121cfef3f58 100644 --- a/pkgs/tools/networking/vpnc/default.nix +++ b/pkgs/tools/networking/vpnc/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation { rm -r $sourceRoot/{trunk,branches,tags} ''; - patches = [ ./makefile.patch ./no_default_route_when_netmask.patch ]; + patches = [ ./no_default_route_when_netmask.patch ]; # The `etc/vpnc/vpnc-script' script relies on `which' and on # `ifconfig' as found in net-tools (not GNU Inetutils). @@ -23,6 +23,16 @@ stdenv.mkDerivation { nativeBuildInputs = [ makeWrapper ]; buildInputs = [libgcrypt perl openssl ]; + makeFlags = [ + "PREFIX=$(out)" + "ETCDIR=$(out)/etc/vpnc" + "SCRIPT_PATH=$(out)/etc/vpnc/vpnc-script" + ]; + + postPatch = '' + patchShebangs makeman.pl + ''; + preConfigure = '' sed -i 's|^#OPENSSL|OPENSSL|g' Makefile |