-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
50 lines (44 loc) · 1.53 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
description = "Project starter";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flakeUtils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flakeUtils, ... }@inputs:
flakeUtils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs {
inherit system;
config.allowUnfree = true;
};
fusebits = ./fuseftp.bits;
in {
defaultPackage = pkgs.buildGoModule rec {
pname = "telepresence2";
version = "2.15.1";
src = pkgs.fetchFromGitHub {
owner = "telepresenceio";
repo = "telepresence";
rev = "v${version}";
sha256 = "sha256-67a5e7Lun/mlRwRoD6eomQpgUXqzAUx8IS7Mv86j6Gw=";
};
vendorSha256 = "sha256-/13OkcLJI/q14tyFsynL5ZAIITH1w9XWpzRqZoJJesE=";
preBuild = "cp ${fusebits} pkg/client/remotefs/fuseftp.bits";
nativeBuildInputs = with pkgs; [ git ];
ldflags = [
"-s"
"-w"
"-X=github.com/telepresenceio/telepresence/v2/pkg/version.Version=${src.rev}"
];
subPackages = [ "cmd/telepresence" ];
meta = with pkgs.lib; {
description =
"Local development against a remote Kubernetes or OpenShift cluster";
homepage = "https://telepresence.io";
license = licenses.asl20;
maintainers = with maintainers; [ nxyt ];
mainProgram = "telepresence";
};
};
});
}