diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-09-10 12:04:13 +0200 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-09-16 00:04:55 +0100 |
commit | 914e0e594ca2d0fa5d456be208bf703d79f04fa3 (patch) | |
tree | 49cabb000804d24bb798de8afaacaa7fac8a41c8 /pkgs/development/tools/go-repo-root | |
parent | 7a6b860e1c5c6e35719631ff3599521144990077 (diff) | |
download | nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar.gz nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar.bz2 nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar.lz nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar.xz nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.tar.zst nixlib-914e0e594ca2d0fa5d456be208bf703d79f04fa3.zip |
buildGoPackage: deps.json -> deps.nix in NIXON
https://github.com/NixOS/nixpkgs/pull/17254#issuecomment-245295541 * update docs to describe `deps.nix` * include goDeps in nix-shell GOPATH * NixOS 16.09 rel notes about replacing goPackages
Diffstat (limited to 'pkgs/development/tools/go-repo-root')
-rw-r--r-- | pkgs/development/tools/go-repo-root/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/tools/go-repo-root/deps.nix | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/pkgs/development/tools/go-repo-root/default.nix b/pkgs/development/tools/go-repo-root/default.nix index d6ae032f0782..e47b84354d62 100644 --- a/pkgs/development/tools/go-repo-root/default.nix +++ b/pkgs/development/tools/go-repo-root/default.nix @@ -13,5 +13,5 @@ buildGoPackage rec { sha256 = "1rlzp8kjv0a3dnfhyqcggny0ad648j5csr2x0siq5prahlp48mg4"; }; - buildInputs = [ gotools ]; + goDeps = ./deps.nix; } diff --git a/pkgs/development/tools/go-repo-root/deps.nix b/pkgs/development/tools/go-repo-root/deps.nix new file mode 100644 index 000000000000..2554b3cad1a5 --- /dev/null +++ b/pkgs/development/tools/go-repo-root/deps.nix @@ -0,0 +1,20 @@ +[ + { + goPackagePath = "golang.org/x/tools/go/vcs"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "9ae4729fba20b3533d829a9c6ba8195b068f2abc"; + sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1"; + }; + } + { + goPackagePath = "code.google.com/p/go.tools/go/vcs"; + fetch = { + type = "git"; + url = "https://go.googlesource.com/tools"; + rev = "9ae4729fba20b3533d829a9c6ba8195b068f2abc"; + sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1"; + }; + } +] |