Reusing go libs in deis build

This commit is contained in:
Kamil Chmielewski
2016-06-09 11:21:30 +02:00
parent 5c2628a704
commit 81f3092e11
5 changed files with 66 additions and 43 deletions
+2 -11
View File
@@ -1,5 +1,5 @@
# This file was generated by go2nix.
{ stdenv, lib, goPackages, fetchgit, fetchhg, fetchbzr, fetchsvn }:
{ stdenv, lib, goPackages, fetchgit }:
with goPackages;
@@ -23,14 +23,5 @@ buildGoPackage rec {
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));
goDeps = ./deps.json;
}
+10
View File
@@ -0,0 +1,10 @@
[
{
"include": "../../../go-modules/libs.json",
"packages": [
"github.com/docopt/docopt-go",
"golang.org/x/crypto",
"gopkg.in/yaml.v2"
]
}
]