mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
30 lines
823 B
Nix
30 lines
823 B
Nix
# 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));
|
|
}
|