summary refs log tree commit diff
path: root/pkgs/development/tools/deisctl/default.nix
blob: 67245a5ebbe70aec3290ea4f9220e49a9b925844 (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
{ lib, buildGoPackage, fetchFromGitHub }:

buildGoPackage rec {
  pname = "deis";
  version = "1.13.3";
  rev = "v${version}";

  goPackagePath = "github.com/deis/deis";
  subPackages = [ "deisctl" ];

  src = fetchFromGitHub {
    inherit rev;
    owner = "deis";
    repo = "deis";
    sha256 = "15q44jyjms8fdmly0z4sn4ymf1dx6cmdavgixjixdj2wbjw0yi2p";
  };

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

  meta = with lib; {
    homepage = "https://deis.io";
    description = "A command-line utility used to provision and operate a Deis cluster";
    license = licenses.asl20;
    platforms = platforms.unix;
    maintainers = with maintainers; [
    ];
  };
}