teleconsole: use upstream vendor
This commit is contained in:
parent
288135531e
commit
2afb2ae110
@ -13,7 +13,16 @@ buildGoPackage rec {
|
||||
sha256 = "01552422n0bj1iaaw6pvg9l1qr66r69sdsngxbcdjn1xh3mj74sm";
|
||||
};
|
||||
|
||||
goDeps = ./deps.nix;
|
||||
srcTeleport = fetchFromGitHub {
|
||||
owner = "gravitational";
|
||||
repo = "teleport";
|
||||
rev = "2cb40abd8ea8fb2915304ea4888b5b9f3e5bc223";
|
||||
sha256 = "1xw3bfnjbj88x465snwwzn4bmpmzmsrq9r0pkj388qwvfrclgnfk";
|
||||
};
|
||||
|
||||
preBuild = ''
|
||||
cp -r ${srcTeleport} ./go/src/github.com/gravitational/teleport
|
||||
'';
|
||||
|
||||
CGO_ENABLED = 1;
|
||||
buildFlags = [ "-ldflags" ];
|
||||
|
13
pkgs/tools/misc/teleconsole/deps.nix
generated
13
pkgs/tools/misc/teleconsole/deps.nix
generated
@ -1,13 +0,0 @@
|
||||
[
|
||||
# Teleport v2.0.0-alpha.4 required for build.
|
||||
# See https://github.com/gravitational/teleconsole/blob/09591f227c2a8df4c68af8bc4adfadfc596f4ed2/Makefile#L8
|
||||
{
|
||||
goPackagePath = "github.com/gravitational/teleport";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://github.com/gravitational/teleport";
|
||||
rev = "2cb40abd8ea8fb2915304ea4888b5b9f3e5bc223";
|
||||
sha256 = "1xw3bfnjbj88x465snwwzn4bmpmzmsrq9r0pkj388qwvfrclgnfk";
|
||||
};
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user