2020-07-18 16:06:22 +00:00
|
|
|
{ lib, pythonPackages, fetchFromGitHub, makeWrapper, git
|
2020-04-24 23:36:52 +00:00
|
|
|
, sshfs-fuse, torsocks, sshuttle, conntrack-tools , openssh, coreutils
|
|
|
|
, iptables, bash }:
|
|
|
|
|
|
|
|
let
|
2020-11-30 08:33:03 +00:00
|
|
|
sshuttle-telepresence =
|
2020-07-18 16:06:22 +00:00
|
|
|
let
|
|
|
|
sshuttleTelepresenceRev = "32226ff14d98d58ccad2a699e10cdfa5d86d6269";
|
|
|
|
in
|
|
|
|
lib.overrideDerivation sshuttle (p: {
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "datawire";
|
|
|
|
repo = "sshuttle";
|
|
|
|
rev = sshuttleTelepresenceRev;
|
|
|
|
sha256 = "1lp5b0h9v59igf8wybjn42w6ajw08blhiqmjwp4r7qnvmvmyaxhh";
|
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION="${sshuttleTelepresenceRev}";
|
|
|
|
|
|
|
|
postPatch = "rm sshuttle/tests/client/test_methods_nat.py";
|
|
|
|
postInstall = "mv $out/bin/sshuttle $out/bin/sshuttle-telepresence";
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
in pythonPackages.buildPythonPackage rec {
|
|
|
|
pname = "telepresence";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "0.108";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-18 16:06:22 +00:00
|
|
|
owner = "telepresenceio";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = "telepresence";
|
|
|
|
rev = version;
|
2020-11-30 08:33:03 +00:00
|
|
|
sha256 = "6V0sM0Z+2xNDgL0wIzJOdaUp2Ol4ejNTk9K/pllVa7g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/telepresence \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [
|
|
|
|
sshfs-fuse
|
|
|
|
torsocks
|
|
|
|
conntrack-tools
|
|
|
|
sshuttle-telepresence
|
|
|
|
openssh
|
|
|
|
coreutils
|
|
|
|
iptables
|
|
|
|
bash
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.telepresence.io/";
|
|
|
|
description = "Local development against a remote Kubernetes or OpenShift cluster";
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ offline ];
|
|
|
|
};
|
|
|
|
}
|