teleconsole: use upstream vendor

This commit is contained in:
zowoq 2020-08-31 22:58:41 +10:00
parent 288135531e
commit 2afb2ae110
2 changed files with 10 additions and 14 deletions

View File

@ -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" ];

View File

@ -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";
};
}
]