2021-11-04 20:43:27 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, kubernetes-helm }:
|
2021-04-10 16:54:43 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "telepresence2";
|
2022-08-02 04:26:41 +00:00
|
|
|
version = "2.6.4";
|
2021-04-10 16:54:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "telepresenceio";
|
|
|
|
repo = "telepresence";
|
|
|
|
rev = "v${version}";
|
2022-08-02 04:26:41 +00:00
|
|
|
sha256 = "sha256-AZW58L0971GVnvafecHfVg3MWr/xGHi4ptycXcV63Fg=";
|
2021-04-10 16:54:43 +00:00
|
|
|
};
|
|
|
|
|
2021-11-04 20:43:27 +00:00
|
|
|
# The Helm chart is go:embed'ed as a tarball in the binary.
|
|
|
|
# That tarball is generated by running ./build-aux/package_embedded_chart/main.go,
|
|
|
|
# which tries to invoke helm from tools/bin/helm.
|
|
|
|
# Oh well…
|
|
|
|
preBuild = ''
|
|
|
|
mkdir -p tools/bin
|
|
|
|
ln -sfn ${kubernetes-helm}/bin/helm tools/bin/helm
|
|
|
|
go run ./build-aux/package_embedded_chart/main.go ${src.rev}
|
|
|
|
'';
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-aa40+6cjpA6/bqpFiqayCkX0PBToPmsp99ykv6e7Huc=";
|
2021-04-10 16:54:43 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X=github.com/telepresenceio/telepresence/v2/pkg/version.Version=${src.rev}"
|
|
|
|
];
|
2021-04-10 16:54:43 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/telepresence" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Local development against a remote Kubernetes or OpenShift cluster";
|
2022-08-12 00:04:20 +00:00
|
|
|
homepage = "https://telepresence.io";
|
2021-04-10 16:54:43 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mausch ];
|
2022-04-01 19:34:55 +00:00
|
|
|
mainProgram = "telepresence";
|
2021-04-10 16:54:43 +00:00
|
|
|
};
|
|
|
|
}
|