depot/third_party/nixpkgs/pkgs/development/tools/deis/default.nix
Default email 66604c92c1 Project import generated by Copybara.
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
2020-05-15 23:57:56 +02:00

36 lines
850 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "deis";
version = "1.13.4";
rev = "v${version}";
goPackagePath = "github.com/deis/deis";
subPackages = [ "client" ];
postInstall = ''
if [ -f "$out/bin/client" ]; then
mv "$out/bin/client" "$out/bin/deis"
fi
'';
src = fetchFromGitHub {
inherit rev;
owner = "deis";
repo = "deis";
sha256 = "0hndzvlgpfm83c4i1c88byv8j9clagswa79nny8wrw33dx90dym1";
};
preBuild = ''
export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
'';
meta = with stdenv.lib; {
homepage = "https://deis.io";
description = "A command line utility used to interact with the Deis open source PaaS.";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [
];
};
}