mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
88c65e2e69
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib, pythonPackages, fetchFromGitHub, makeWrapper, git
|
|
, sshfs-fuse, torsocks, sshuttle, conntrack-tools , openssh, coreutils
|
|
, iptables, bash }:
|
|
|
|
let
|
|
sshuttle-telepresence = lib.overrideDerivation sshuttle (p: {
|
|
postInstall = "mv $out/bin/sshuttle $out/bin/sshuttle-telepresence";
|
|
});
|
|
in pythonPackages.buildPythonPackage rec {
|
|
pname = "telepresence";
|
|
version = "0.109";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "telepresenceio";
|
|
repo = "telepresence";
|
|
rev = version;
|
|
sha256 = "1ccc8bzcdxp6rh6llk7grcnmyc05fq7dz5w0mifdzjv3a473hsky";
|
|
};
|
|
|
|
nativeBuildInputs = [ 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 ];
|
|
};
|
|
}
|