mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Merge pull request #53042 from exi/wireguard
wireguard-tools Add proper dependencies
This commit is contained in:
commit
693aee0218
@ -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 New Issue
Block a user