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
This commit is contained in:
committed by
zimbatm
parent
7a6b860e1c
commit
914e0e594c
@@ -14,7 +14,7 @@ buildGoPackage rec {
|
||||
sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1";
|
||||
};
|
||||
|
||||
goDeps = ./deps.json;
|
||||
goDeps = ./deps.nix;
|
||||
|
||||
preConfigure = ''
|
||||
# Make the builtin tools available here
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
[
|
||||
{
|
||||
"goPackagePath": "golang.org/x/net",
|
||||
"fetch": {
|
||||
"type": "git",
|
||||
"url": "https://go.googlesource.com/net",
|
||||
"rev": "62ac18b461605b4be188bbc7300e9aa2bc836cd4",
|
||||
"sha256": "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p"
|
||||
}
|
||||
}
|
||||
]
|
||||
11
pkgs/development/tools/gotools/deps.nix
Normal file
11
pkgs/development/tools/gotools/deps.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
[
|
||||
{
|
||||
goPackagePath = "golang.org/x/net";
|
||||
fetch = {
|
||||
type = "git";
|
||||
url = "https://go.googlesource.com/net";
|
||||
rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4";
|
||||
sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p";
|
||||
};
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user