diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-04-21 11:49:33 +0200 |
---|---|---|
committer | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-06-09 11:21:30 +0200 |
commit | bfa32800c3df6dd3a8e23bd239ec102173407249 (patch) | |
tree | 3f18ac6e4914dfb1f21794a27b1abcb35c63420f /pkgs/development/tools/deis | |
parent | fcb0023e8030074f140c69013a6b339880cd24de (diff) |
First programs extracted from go-packages: deis and gawp
Diffstat (limited to 'pkgs/development/tools/deis')
-rw-r--r-- | pkgs/development/tools/deis/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/deis/default.nix b/pkgs/development/tools/deis/default.nix new file mode 100644 index 0000000000000..3787e30fbf433 --- /dev/null +++ b/pkgs/development/tools/deis/default.nix @@ -0,0 +1,36 @@ +# This file was generated by go2nix. +{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }: + +with goPackages; + +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"; + }; + + extraSrcs = map ( jsonDep: + { + inherit (jsonDep) goPackagePath; + src = if jsonDep.fetch.type == "git" then + fetchgit { + inherit (jsonDep.fetch) url rev sha256; + } + else {}; + } + ) (builtins.fromJSON (builtins.readFile ../../go-modules/libs.json)); +} |