wireguard: wg-quick systemd unit was referencing /usr/bin
This commit is contained in:
parent
fc5b50dc96
commit
4817454366
|
@ -47,6 +47,8 @@ let
|
||||||
|
|
||||||
buildInputs = [ libmnl ];
|
buildInputs = [ libmnl ];
|
||||||
|
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
"WITH_BASHCOMPLETION=yes"
|
"WITH_BASHCOMPLETION=yes"
|
||||||
"WITH_WGQUICK=yes"
|
"WITH_WGQUICK=yes"
|
||||||
|
@ -57,6 +59,11 @@ let
|
||||||
];
|
];
|
||||||
|
|
||||||
buildPhase = "make tools";
|
buildPhase = "make tools";
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
substituteInPlace $out/lib/systemd/system/wg-quick@.service \
|
||||||
|
--replace /usr/bin $out/bin
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
in if kernel == null
|
in if kernel == null
|
||||||
|
|
Loading…
Reference in New Issue