summary refs log tree commit diff
path: root/pkgs/tools/security/sshuttle
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-07-07 19:54:40 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-07-07 19:54:40 -0500
commitaaf6cf74cef45c88c928c7cc18c7d9de434e2270 (patch)
treef7fccacbed0769ea87fb89b4f5201d91077a1df4 /pkgs/tools/security/sshuttle
parent1ba6cedad18f4f429fe0cc82929142c038c785dd (diff)
downloadnixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar.gz
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar.bz2
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar.lz
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar.xz
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.tar.zst
nixpkgs-aaf6cf74cef45c88c928c7cc18c7d9de434e2270.zip
sshuttle: fix build on darwin
Diffstat (limited to 'pkgs/tools/security/sshuttle')
-rw-r--r--pkgs/tools/security/sshuttle/default.nix24
1 files changed, 14 insertions, 10 deletions
diff --git a/pkgs/tools/security/sshuttle/default.nix b/pkgs/tools/security/sshuttle/default.nix
index d1605d3e2c9..b5538d37815 100644
--- a/pkgs/tools/security/sshuttle/default.nix
+++ b/pkgs/tools/security/sshuttle/default.nix
@@ -1,5 +1,12 @@
-{ stdenv, python3Packages, fetchurl, makeWrapper
-, coreutils, iptables, nettools, openssh, procps }:
+{ stdenv
+, python3Packages
+, makeWrapper
+, coreutils
+, iptables
+, nettools
+, openssh
+, procps
+}:
 
 python3Packages.buildPythonApplication rec {
   pname = "sshuttle";
@@ -13,17 +20,14 @@ python3Packages.buildPythonApplication rec {
   patches = [ ./sudo.patch ];
 
   nativeBuildInputs = [ makeWrapper python3Packages.setuptools_scm ];
-  buildInputs =
-    [ coreutils openssh procps nettools ]
-    ++ stdenv.lib.optionals stdenv.isLinux [ iptables ];
 
   checkInputs = with python3Packages; [ mock pytest pytestcov pytestrunner flake8 ];
 
-  postInstall = let
-    mapPath = f: x: stdenv.lib.concatStringsSep ":" (map f x);
-  in ''
-  wrapProgram $out/bin/sshuttle \
-    --prefix PATH : "${mapPath (x: "${x}/bin") buildInputs}" \
+  runtimeDeps = [ coreutils openssh procps ] ++ stdenv.lib.optionals stdenv.isLinux [ iptables nettools ];
+
+  postInstall = ''
+    wrapProgram $out/bin/sshuttle \
+      --prefix PATH : "${stdenv.lib.makeBinPath runtimeDeps}" \
   '';
 
   meta = with stdenv.lib; {