2016-10-19 12:16:43 +03:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
2016-04-21 12:49:33 +03:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "deis-${version}";
|
2016-10-19 12:16:43 +03:00
|
|
|
version = "1.13.3";
|
2016-04-21 12:49:33 +03:00
|
|
|
rev = "v${version}";
|
2016-10-19 12:16:43 +03:00
|
|
|
|
2016-04-21 12:49:33 +03: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 09:56:13 +03:00
|
|
|
src = fetchFromGitHub {
|
2016-04-21 12:49:33 +03:00
|
|
|
inherit rev;
|
2016-06-06 09:56:13 +03:00
|
|
|
owner = "deis";
|
|
|
|
repo = "deis";
|
2016-10-19 12:16:43 +03:00
|
|
|
sha256 = "15q44jyjms8fdmly0z4sn4ymf1dx6cmdavgixjixdj2wbjw0yi2p";
|
2016-04-21 12:49:33 +03:00
|
|
|
};
|
|
|
|
|
2016-10-19 11:26:03 +03:00
|
|
|
preBuild = ''
|
|
|
|
export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
|
|
|
|
'';
|
2016-10-19 12:25:08 +03: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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
jgeerds
|
|
|
|
];
|
|
|
|
};
|
2016-04-21 12:49:33 +03:00
|
|
|
}
|