nixpkgs/pkgs/servers/teleport/default.nix
Ryan Mulligan 0320175ade teleport: 2.4.0 -> 2.4.1
Semi-automatic update. These checks were performed:

- built on NixOS
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/tsh help` got 0 exit code
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/tsh version` and found version 2.4.1
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/tctl help` got 0 exit code
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/tctl version` and found version 2.4.1
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/teleport help` got 0 exit code
- ran `/nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin/bin/teleport version` and found version 2.4.1
- found 2.4.1 with grep in /nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin
- found 2.4.1 in filename of file in /nix/store/kp6byd77bjr0k67js1z2a24p8kb81ddb-teleport-2.4.1-bin

cc "@tomberek @ehmry @lethalman"
2018-02-27 17:15:21 -08:00

41 lines
1.2 KiB
Nix

# This file was generated by https://github.com/kamilchm/go2nix v2.0-dev
{ stdenv, buildGoPackage, zip, fetchFromGitHub }:
buildGoPackage rec {
name = "teleport-${version}";
version = "2.4.1";
# This repo has a private submodule "e" which fetchgit cannot handle without failing.
src = fetchFromGitHub {
owner = "gravitational";
repo = "teleport";
rev = "v${version}";
sha256 = "09kmlihv4aqc39f9cyv2vm0kqgdf9vmdrgds5krnzqdgy3svyg7y";
};
goPackagePath = "github.com/gravitational/teleport";
subPackages = [ "tool/tctl" "tool/teleport" "tool/tsh" ];
buildInputs = [ zip ];
postBuild = ''
pushd .
cd $NIX_BUILD_TOP/go/src/github.com/gravitational/teleport
mkdir -p build
echo "making webassets"
make build/webassets.zip
cat build/webassets.zip >> $NIX_BUILD_TOP/go/bin/teleport
rm -fr build/webassets.zip
cd $NIX_BUILD_TOP/go/bin
zip -q -A teleport
popd
'';
dontStrip = true;
meta = {
description = "A SSH CA management suite";
homepage = "https://gravitational.com/teleport/";
license = stdenv.lib.licenses.asl20;
maintainers = [ stdenv.lib.maintainers.tomberek ];
platforms = stdenv.lib.platforms.linux;
};
}