Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
76 lines
1.6 KiB
Nix
76 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildGoModule,
|
|
fuse,
|
|
}:
|
|
|
|
let
|
|
fuseftp = buildGoModule rec {
|
|
pname = "go-fuseftp";
|
|
version = "0.6.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "datawire";
|
|
repo = "go-fuseftp";
|
|
rev = "v${version}";
|
|
hash = "sha256-70VmT8F+RNiDk6fnrzDktdfNhZk20sXF+b3TBTAkNHo=";
|
|
};
|
|
|
|
vendorHash = "sha256-wp4jOmeVdfuRwdclCzBonNCkhgsNUBOBL6gxlrznC1A=";
|
|
|
|
buildInputs = [ fuse ];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
];
|
|
|
|
subPackages = [ "pkg/main" ];
|
|
};
|
|
in
|
|
buildGoModule rec {
|
|
pname = "telepresence2";
|
|
version = "2.24.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "telepresenceio";
|
|
repo = "telepresence";
|
|
rev = "v${version}";
|
|
hash = "sha256-f9KlDKLRLmYAGMWdlKb4PbGZ+hn8J55EAmQ19oJ5+q4=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
fuseftp
|
|
];
|
|
|
|
# telepresence depends on fuseftp existing as a built binary, as it gets embedded
|
|
# CGO gets disabled to match their build process as that is how it's done upstream
|
|
preBuild = ''
|
|
cp ${fuseftp}/bin/main ./pkg/client/remotefs/fuseftp.bits
|
|
export CGO_ENABLED=0
|
|
'';
|
|
|
|
vendorHash = "sha256-I2FyoOKSU1h6a2LwmAdFKGIcqVGbtxujjarqdSX7HFI=";
|
|
|
|
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
|
|
vilsol
|
|
wrbbz
|
|
];
|
|
mainProgram = "telepresence";
|
|
};
|
|
}
|