Skip to content

Commit

Permalink
wireguard: wg-quick systemd unit was referencing /usr/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Oct 9, 2017
1 parent fc5b50d commit 4817454
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkgs/os-specific/linux/wireguard/default.nix
Expand Up @@ -47,6 +47,8 @@ let

buildInputs = [ libmnl ];

enableParallelBuilding = true;

makeFlags = [
"WITH_BASHCOMPLETION=yes"
"WITH_WGQUICK=yes"
Expand All @@ -57,6 +59,11 @@ let
];

buildPhase = "make tools";

postInstall = ''
substituteInPlace $out/lib/systemd/system/wg-quick@.service \
--replace /usr/bin $out/bin
'';
};

in if kernel == null
Expand Down

0 comments on commit 4817454

Please sign in to comment.