nixpkgs/pkgs/development/tools/deis/default.nix

37 lines
859 B
Nix
Raw Normal View History

# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "deis-${version}";
version = "1.13.0";
rev = "v${version}";
goPackagePath = "github.com/deis/deis";
subPackages = [ "client" ];
postInstall = ''
if [ -f "$bin/bin/client" ]; then
mv "$bin/bin/client" "$bin/bin/deis"
fi
'';
src = fetchgit {
inherit rev;
url = "https://github.com/deis/deis";
sha256 = "1fblg3gf7dh5hhm4ajq7yl7iy6gw8p5xlh4z8kvfy542m1fzr0dc";
};
extraSrcs = map ( jsonDep:
{
inherit (jsonDep) goPackagePath;
src = if jsonDep.fetch.type == "git" then
fetchgit {
inherit (jsonDep.fetch) url rev sha256;
}
else {};
}
) (builtins.fromJSON (builtins.readFile ../../go-modules/libs.json));
}