nixpkgs-suyu/pkgs/tools/misc/gawp/default.nix

30 lines
823 B
Nix
Raw Normal View History

# 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));
}