summary refs log tree commit diff
path: root/pkgs/development/tools/deis/default.nix
blob: 4625c79767f84be0e81acc4b931dea7598d00c69 (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
25
26
27
28
29
30
31
32
33
34
35
36
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "deis";
  version = "1.13.4";
  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 = "0hndzvlgpfm83c4i1c88byv8j9clagswa79nny8wrw33dx90dym1";
  };

  preBuild = ''
    export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
  '';

  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.unix;
    maintainers = with maintainers; [
    ];
  };
}