First programs extracted from go-packages: deis and gawp

This commit is contained in:
Kamil Chmielewski
2016-04-21 11:49:33 +02:00
parent fcb0023e80
commit bfa32800c3
5 changed files with 96 additions and 34 deletions

View File

@@ -0,0 +1,29 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
with goPackages;
buildGoPackage rec {
name = "gawp-${version}";
version = "20160121-${stdenv.lib.strings.substring 0 7 rev}";
rev = "5db2d8faa220e8d6eaf8677354bd197bf621ff7f";
goPackagePath = "github.com/martingallagher/gawp";
src = fetchgit {
inherit rev;
url = "https://github.com/martingallagher/gawp";
sha256 = "0r4bp4w3s9rkmg3cz9jb7d6ngh7vfj31p9kbim6mhilxvmgjk4ly";
};
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 ../../../development/go-modules/libs.json));
}