2016-10-19 11:16:43 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-04-21 11:49:33 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "deis";
|
2018-01-20 16:50:32 +01:00
|
|
|
version = "1.13.4";
|
2016-04-21 11:49:33 +02:00
|
|
|
rev = "v${version}";
|
2016-10-19 11:16:43 +02:00
|
|
|
|
2016-04-21 11:49:33 +02:00
|
|
|
goPackagePath = "github.com/deis/deis";
|
|
|
|
subPackages = [ "client" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
if [ -f "$bin/bin/client" ]; then
|
|
|
|
mv "$bin/bin/client" "$bin/bin/deis"
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2016-06-06 08:56:13 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-04-21 11:49:33 +02:00
|
|
|
inherit rev;
|
2016-06-06 08:56:13 +02:00
|
|
|
owner = "deis";
|
|
|
|
repo = "deis";
|
2018-01-20 16:50:32 +01:00
|
|
|
sha256 = "0hndzvlgpfm83c4i1c88byv8j9clagswa79nny8wrw33dx90dym1";
|
2016-04-21 11:49:33 +02:00
|
|
|
};
|
|
|
|
|
2016-10-19 10:26:03 +02:00
|
|
|
preBuild = ''
|
|
|
|
export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
|
|
|
|
'';
|
2016-10-19 11:25:08 +02:00
|
|
|
|
|
|
|
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;
|
2019-02-17 14:00:33 +01:00
|
|
|
platforms = platforms.unix;
|
2016-10-19 11:25:08 +02:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
];
|
|
|
|
};
|
2016-04-21 11:49:33 +02:00
|
|
|
}
|