mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 13:10:33 +00:00
wireguard-tools Add proper dependencies
wg-quick calls iproute, resolvconf and sysctl on Linux. These dependencies where missing.
This commit is contained in:
parent
19894adb77
commit
ca9e76e676
|
@ -1,4 +1,4 @@
|
|||
{ stdenv, fetchzip, libmnl ? null, makeWrapper ? null, wireguard-go ? null }:
|
||||
{ stdenv, fetchzip, openresolv ? null, libmnl ? null, procps ? null, iproute ? null, makeWrapper ? null, wireguard-go ? null }:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
|
@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
sourceRoot = "source/src/tools";
|
||||
|
||||
nativeBuildInputs = optional stdenv.isDarwin makeWrapper;
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = optional stdenv.isLinux libmnl;
|
||||
|
||||
makeFlags = [
|
||||
|
@ -27,6 +27,10 @@ stdenv.mkDerivation rec {
|
|||
postFixup = ''
|
||||
substituteInPlace $out/lib/systemd/system/wg-quick@.service \
|
||||
--replace /usr/bin $out/bin
|
||||
'' + optionalString stdenv.isLinux ''
|
||||
for f in $out/bin/*; do
|
||||
wrapProgram $f --prefix PATH : ${makeBinPath [procps iproute openresolv]}
|
||||
done
|
||||
'' + optionalString stdenv.isDarwin ''
|
||||
for f in $out/bin/*; do
|
||||
wrapProgram $f --prefix PATH : ${wireguard-go}/bin
|
||||
|
|
Loading…
Reference in a new issue