summary refs log tree commit diff
path: root/pkgs/development/tools/deis/default.nix
blob: 449af618cb182b6763a475a945ffcd4cef8bfd82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, lib, buildGoPackage, fetchgit }:

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";
  };

  goDeps = ./deps.json;
}