mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
26 lines
518 B
Nix
26 lines
518 B
Nix
{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
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 = fetchFromGitHub {
|
|
inherit rev;
|
|
owner = "deis";
|
|
repo = "deis";
|
|
sha256 = "1qv9lxqx7m18029lj8cw3k7jngvxs4iciwrypdy0gd2nnghc68sw";
|
|
};
|
|
|
|
goDeps = ./deps.json;
|
|
}
|