wireguard: wg-quick systemd unit was referencing /usr/bin

This commit is contained in:
Peter Hoeg 2017-10-09 11:46:32 +08:00
parent fc5b50dc96
commit 4817454366

View File

@ -47,6 +47,8 @@ let
buildInputs = [ libmnl ];
enableParallelBuilding = true;
makeFlags = [
"WITH_BASHCOMPLETION=yes"
"WITH_WGQUICK=yes"
@ -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