Reusing go libs in deis build
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
[
|
||||
{
|
||||
"include": "../../../go-modules/libs.json",
|
||||
"packages": [
|
||||
"github.com/docopt/docopt-go",
|
||||
"golang.org/x/crypto",
|
||||
"gopkg.in/yaml.v2"
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user