3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #130941 from michaeladler/fix/vpnc-scripts

This commit is contained in:
Sandro 2021-07-22 01:21:02 +02:00 committed by GitHub
commit 84c7443562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
{ lib, stdenv, fetchgit
, makeWrapper
, nettools, gawk, systemd, openresolv, coreutils, gnugrep
, nettools, gawk, systemd, openresolv, coreutils, gnugrep, iproute2
}:
stdenv.mkDerivation {
@ -28,7 +28,7 @@ stdenv.mkDerivation {
--replace "/usr/bin/resolvectl" "${systemd}/bin/resolvectl"
'' + ''
wrapProgram $out/bin/vpnc-script \
--prefix PATH : "${lib.makeBinPath ([ nettools gawk coreutils gnugrep ] ++ lib.optionals stdenv.isLinux [ openresolv ])}"
--prefix PATH : "${lib.makeBinPath ([ nettools gawk coreutils gnugrep ] ++ lib.optionals stdenv.isLinux [ openresolv iproute2 ])}"
'';
meta = with lib; {