nixpkgs/pkgs/tools/networking/telepresence2/default.nix
David Florness 3439898888
telepresence: fix homepage link
The current homepage gives a 404:

    [~]$ curl -v https://www.getambassador.io/docs/telepresence/2.1/quick-start/ 2>&1 | grep -A15 '< HTTP/2'
    < HTTP/2 404
    < age: 102
    < cache-control: public, max-age=0, must-revalidate
    < content-type: text/html; charset=utf-8
    < date: Fri, 12 Aug 2022 00:04:41 GMT
    < etag: 1500322315-ssl
    < referrer-policy: same-origin
    < server: Netlify
    < strict-transport-security: max-age=31536000
    < x-content-type-options: nosniff
    < x-frame-options: DENY
    < x-nf-request-id: 01GA7NZ6Y5BPQJ4B215ZEMRZ5T
    < x-xss-protection: 1; mode=block
    < content-length: 633903
    <
    { [5 bytes data]
2022-08-11 20:10:02 -04:00

40 lines
1.2 KiB
Nix

{ lib, buildGoModule, fetchFromGitHub, kubernetes-helm }:
buildGoModule rec {
pname = "telepresence2";
version = "2.6.4";
src = fetchFromGitHub {
owner = "telepresenceio";
repo = "telepresence";
rev = "v${version}";
sha256 = "sha256-AZW58L0971GVnvafecHfVg3MWr/xGHi4ptycXcV63Fg=";
};
# 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}
'';
vendorSha256 = "sha256-aa40+6cjpA6/bqpFiqayCkX0PBToPmsp99ykv6e7Huc=";
ldflags = [
"-s" "-w" "-X=github.com/telepresenceio/telepresence/v2/pkg/version.Version=${src.rev}"
];
subPackages = [ "cmd/telepresence" ];
meta = with lib; {
description = "Local development against a remote Kubernetes or OpenShift cluster";
homepage = "https://telepresence.io";
license = licenses.asl20;
maintainers = with maintainers; [ mausch ];
mainProgram = "telepresence";
};
}