Commit 012978da authored by Hraban Luyat's avatar Hraban Luyat Committed by Weijia Wang
Browse files

wireguard-tools: bake wireguard-go in PATH

It’s a dependency. Without this, wg-quick doesn’t work if it’s installed on a
system without wireguard-go available in the PATH of the user.
parent c66ccfa0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
, openresolv
, procps
, bash
, wireguard-go
}:

stdenv.mkDerivation rec {
@@ -46,6 +47,11 @@ stdenv.mkDerivation rec {
        --prefix PATH : ${lib.makeBinPath [ procps iproute2 ]} \
        --suffix PATH : ${lib.makeBinPath [ iptables openresolv ]}
    done
  '' + lib.optionalString stdenv.isDarwin ''
    for f in $out/bin/*; do
      wrapProgram $f \
        --prefix PATH : ${lib.makeBinPath [ wireguard-go ]}
    done
  '';

  passthru = {