aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/tools/security/sshuttle/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/tools/security/sshuttle/default.nix')
-rw-r--r--nixpkgs/pkgs/tools/security/sshuttle/default.nix28
1 files changed, 16 insertions, 12 deletions
diff --git a/nixpkgs/pkgs/tools/security/sshuttle/default.nix b/nixpkgs/pkgs/tools/security/sshuttle/default.nix
index 4d0ae5e051d..6f620904872 100644
--- a/nixpkgs/pkgs/tools/security/sshuttle/default.nix
+++ b/nixpkgs/pkgs/tools/security/sshuttle/default.nix
@@ -1,29 +1,33 @@
-{ stdenv, python3Packages, fetchurl, makeWrapper
-, coreutils, iptables, nettools, openssh, procps }:
+{ stdenv
+, python3Packages
+, makeWrapper
+, coreutils
+, iptables
+, nettools
+, openssh
+, procps
+}:
python3Packages.buildPythonApplication rec {
pname = "sshuttle";
- version = "0.78.5";
+ version = "1.0.3";
src = python3Packages.fetchPypi {
inherit pname version;
- sha256 = "0vp13xwrhx4m6zgsyzvai84lkq9mzkaw47j58dk0ll95kaymk2x8";
+ sha256 = "0fff1c88669a20bb6a4e7331960673a3a02a2e04ff163e4c9299496646edcf61";
};
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; {