2020-07-08 23:19:25 +02:00
|
|
|
{ lib, pythonPackages, fetchFromGitHub, makeWrapper, git
|
2018-10-06 15:21:28 +02:00
|
|
|
, sshfs-fuse, torsocks, sshuttle, conntrack-tools , openssh, coreutils
|
|
|
|
, iptables, bash }:
|
2017-09-13 16:37:46 +02:00
|
|
|
|
|
|
|
let
|
2021-10-05 17:15:13 +02:00
|
|
|
sshuttle-telepresence = lib.overrideDerivation sshuttle (p: {
|
|
|
|
postInstall = "mv $out/bin/sshuttle $out/bin/sshuttle-telepresence";
|
|
|
|
});
|
2018-10-06 15:21:28 +02:00
|
|
|
in pythonPackages.buildPythonPackage rec {
|
2017-09-13 16:37:46 +02:00
|
|
|
pname = "telepresence";
|
2021-10-05 17:15:13 +02:00
|
|
|
version = "0.109";
|
2017-09-13 16:37:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-07-08 23:12:06 +02:00
|
|
|
owner = "telepresenceio";
|
2017-09-13 16:37:46 +02:00
|
|
|
repo = "telepresence";
|
|
|
|
rev = version;
|
2021-10-05 17:15:13 +02:00
|
|
|
sha256 = "1ccc8bzcdxp6rh6llk7grcnmyc05fq7dz5w0mifdzjv3a473hsky";
|
2017-09-13 16:37:46 +02:00
|
|
|
};
|
|
|
|
|
2021-02-07 10:17:39 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2018-07-06 19:23:43 +02:00
|
|
|
|
2018-10-06 15:21:28 +02:00
|
|
|
postInstall = ''
|
2018-07-06 19:23:43 +02:00
|
|
|
wrapProgram $out/bin/telepresence \
|
|
|
|
--prefix PATH : ${lib.makeBinPath [
|
|
|
|
sshfs-fuse
|
|
|
|
torsocks
|
|
|
|
conntrack-tools
|
|
|
|
sshuttle-telepresence
|
|
|
|
openssh
|
|
|
|
coreutils
|
|
|
|
iptables
|
|
|
|
bash
|
|
|
|
]}
|
2017-09-13 16:37:46 +02:00
|
|
|
'';
|
|
|
|
|
2018-10-06 15:21:28 +02:00
|
|
|
doCheck = false;
|
|
|
|
|
2017-09-13 16:37:46 +02:00
|
|
|
meta = {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.telepresence.io/";
|
2017-09-13 16:37:46 +02:00
|
|
|
description = "Local development against a remote Kubernetes or OpenShift cluster";
|
|
|
|
license = with lib.licenses; [ asl20 ];
|
|
|
|
maintainers = with lib.maintainers; [ offline ];
|
|
|
|
};
|
|
|
|
}
|