nixpkgs/pkgs/tools/networking/telepresence/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.1 KiB
Nix
Raw Normal View History

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