Merge pull request #254561 from Vilsol/upgrade-telepresence2

maintainers: add vilsol, telepresence2: 2.6.4 -> 2.15.1

authored by ajs124 and committed by GitHub 3b2f92a1 8485cdfa

+44 -12
+6
maintainers/maintainer-list.nix
··· 18135 githubId = 90482; 18136 name = "Viktor Nordling"; 18137 }; 18138 viluon = { 18139 email = "nix@viluon.me"; 18140 github = "viluon";
··· 18135 githubId = 90482; 18136 name = "Viktor Nordling"; 18137 }; 18138 + vilsol = { 18139 + email = "me@vil.so"; 18140 + github = "vilsol"; 18141 + githubId = 1759390; 18142 + name = "Vilsol"; 18143 + }; 18144 viluon = { 18145 email = "nix@viluon.me"; 18146 github = "viluon";
+38 -12
pkgs/tools/networking/telepresence2/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub, kubernetes-helm }: 2 3 buildGoModule rec { 4 pname = "telepresence2"; 5 - version = "2.6.4"; 6 7 src = fetchFromGitHub { 8 owner = "telepresenceio"; 9 repo = "telepresence"; 10 rev = "v${version}"; 11 - sha256 = "sha256-AZW58L0971GVnvafecHfVg3MWr/xGHi4ptycXcV63Fg="; 12 }; 13 14 - # The Helm chart is go:embed'ed as a tarball in the binary. 15 - # That tarball is generated by running ./build-aux/package_embedded_chart/main.go, 16 - # which tries to invoke helm from tools/bin/helm. 17 - # Oh well… 18 preBuild = '' 19 - mkdir -p tools/bin 20 - ln -sfn ${kubernetes-helm}/bin/helm tools/bin/helm 21 - go run ./build-aux/package_embedded_chart/main.go ${src.rev} 22 ''; 23 24 - vendorHash = "sha256-aa40+6cjpA6/bqpFiqayCkX0PBToPmsp99ykv6e7Huc="; 25 26 ldflags = [ 27 "-s" "-w" "-X=github.com/telepresenceio/telepresence/v2/pkg/version.Version=${src.rev}" ··· 33 description = "Local development against a remote Kubernetes or OpenShift cluster"; 34 homepage = "https://telepresence.io"; 35 license = licenses.asl20; 36 - maintainers = with maintainers; [ mausch ]; 37 mainProgram = "telepresence"; 38 }; 39 }
··· 1 + { lib 2 + , fetchFromGitHub 3 + , buildGoModule 4 + , fuse 5 + }: 6 + 7 + let 8 + fuseftp = buildGoModule rec { 9 + pname = "go-fuseftp"; 10 + version = "0.4.2"; 11 + 12 + src = fetchFromGitHub { 13 + owner = "datawire"; 14 + repo = "go-fuseftp"; 15 + rev = "v${version}"; 16 + hash = "sha256-bkaC+EOqFPQA4fDkVhO6EqgGhOJy31yGwVbbPoRd+70="; 17 + }; 18 19 + vendorHash = "sha256-Dk4wvg2lTGTw8vP42+XuvmMXeMluR0SPwlVHLEB8yCQ="; 20 + 21 + buildInputs = [ fuse ]; 22 + 23 + ldflags = [ "-s" "-w" ]; 24 + 25 + subPackages = [ "pkg/main" ]; 26 + }; 27 + in 28 buildGoModule rec { 29 pname = "telepresence2"; 30 + version = "2.15.1"; 31 32 src = fetchFromGitHub { 33 owner = "telepresenceio"; 34 repo = "telepresence"; 35 rev = "v${version}"; 36 + hash = "sha256-67a5e7Lun/mlRwRoD6eomQpgUXqzAUx8IS7Mv86j6Gw="; 37 }; 38 39 + propagatedBuildInputs = [ 40 + fuseftp 41 + ]; 42 + 43 + # telepresence depends on fuseftp existing as a built binary, as it gets embedded 44 + # CGO gets disabled to match their build process as that is how it's done upstream 45 preBuild = '' 46 + cp ${fuseftp}/bin/main ./pkg/client/remotefs/fuseftp.bits 47 + export CGO_ENABLED=0 48 ''; 49 50 + vendorHash = "sha256-/13OkcLJI/q14tyFsynL5ZAIITH1w9XWpzRqZoJJesE="; 51 52 ldflags = [ 53 "-s" "-w" "-X=github.com/telepresenceio/telepresence/v2/pkg/version.Version=${src.rev}" ··· 59 description = "Local development against a remote Kubernetes or OpenShift cluster"; 60 homepage = "https://telepresence.io"; 61 license = licenses.asl20; 62 + maintainers = with maintainers; [ mausch vilsol ]; 63 mainProgram = "telepresence"; 64 }; 65 }