2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2016-04-21 09:49:33 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "deis";
|
2018-01-20 15:50:32 +00:00
|
|
|
version = "1.13.4";
|
2016-04-21 09:49:33 +00:00
|
|
|
rev = "v${version}";
|
2016-10-19 09:16:43 +00:00
|
|
|
|
2016-04-21 09:49:33 +00:00
|
|
|
goPackagePath = "github.com/deis/deis";
|
|
|
|
subPackages = [ "client" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-04-28 01:50:57 +00:00
|
|
|
if [ -f "$out/bin/client" ]; then
|
|
|
|
mv "$out/bin/client" "$out/bin/deis"
|
2016-04-21 09:49:33 +00:00
|
|
|
fi
|
|
|
|
'';
|
|
|
|
|
2016-06-06 06:56:13 +00:00
|
|
|
src = fetchFromGitHub {
|
2016-04-21 09:49:33 +00:00
|
|
|
inherit rev;
|
2016-06-06 06:56:13 +00:00
|
|
|
owner = "deis";
|
|
|
|
repo = "deis";
|
2018-01-20 15:50:32 +00:00
|
|
|
sha256 = "0hndzvlgpfm83c4i1c88byv8j9clagswa79nny8wrw33dx90dym1";
|
2016-04-21 09:49:33 +00:00
|
|
|
};
|
|
|
|
|
2016-10-19 08:26:03 +00:00
|
|
|
preBuild = ''
|
|
|
|
export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
|
|
|
|
'';
|
2016-10-19 09:25:08 +00:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://deis.io";
|
2020-10-11 05:55:05 +00:00
|
|
|
description = "A command line utility used to interact with the Deis open source PaaS";
|
2016-10-19 09:25:08 +00:00
|
|
|
license = licenses.asl20;
|
2019-02-17 13:00:33 +00:00
|
|
|
platforms = platforms.unix;
|
2016-10-19 09:25:08 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
];
|
|
|
|
};
|
2016-04-21 09:49:33 +00:00
|
|
|
}
|