nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, buildGoPackage, fetchFromGitHub }:
2
3buildGoPackage rec {
4 name = "deis-${version}";
5 version = "1.13.4";
6 rev = "v${version}";
7
8 goPackagePath = "github.com/deis/deis";
9 subPackages = [ "client" ];
10
11 postInstall = ''
12 if [ -f "$bin/bin/client" ]; then
13 mv "$bin/bin/client" "$bin/bin/deis"
14 fi
15 '';
16
17 src = fetchFromGitHub {
18 inherit rev;
19 owner = "deis";
20 repo = "deis";
21 sha256 = "0hndzvlgpfm83c4i1c88byv8j9clagswa79nny8wrw33dx90dym1";
22 };
23
24 preBuild = ''
25 export GOPATH=$GOPATH:$NIX_BUILD_TOP/go/src/${goPackagePath}/Godeps/_workspace
26 '';
27
28 meta = with stdenv.lib; {
29 homepage = https://deis.io;
30 description = "A command line utility used to interact with the Deis open source PaaS.";
31 license = licenses.asl20;
32 platforms = platforms.unix;
33 maintainers = with maintainers; [
34 jgeerds
35 ];
36 };
37}