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:
Kamil Chmielewski
2016-09-10 12:04:13 +02:00
committed by zimbatm
parent 7a6b860e1c
commit 914e0e594c
173 changed files with 4176 additions and 4127 deletions

View File

@@ -21,5 +21,5 @@ buildGoPackage rec {
sha256 = "1qv9lxqx7m18029lj8cw3k7jngvxs4iciwrypdy0gd2nnghc68sw";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
}

View File

@@ -1,29 +0,0 @@
[
{
"goPackagePath": "gopkg.in/yaml.v2",
"fetch": {
"type": "git",
"url": "https://gopkg.in/yaml.v2",
"rev": "a83829b6f1293c91addabc89d0571c246397bbf4",
"sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"
}
},
{
"goPackagePath": "github.com/docopt/docopt-go",
"fetch": {
"type": "git",
"url": "https://github.com/docopt/docopt-go",
"rev": "784ddc588536785e7299f7272f39101f7faccc3f",
"sha256": "0wwz48jl9fvl1iknvn9dqr4gfy1qs03gxaikrxxp9gry6773v3sj"
}
},
{
"goPackagePath": "golang.org/x/crypto",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/crypto",
"rev": "575fdbe86e5dd89229707ebec0575ce7d088a4a6",
"sha256": "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa"
}
}
]

View File

@@ -0,0 +1,29 @@
[
{
goPackagePath = "gopkg.in/yaml.v2";
fetch = {
type = "git";
url = "https://gopkg.in/yaml.v2";
rev = "a83829b6f1293c91addabc89d0571c246397bbf4";
sha256 = "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh";
};
}
{
goPackagePath = "github.com/docopt/docopt-go";
fetch = {
type = "git";
url = "https://github.com/docopt/docopt-go";
rev = "784ddc588536785e7299f7272f39101f7faccc3f";
sha256 = "0wwz48jl9fvl1iknvn9dqr4gfy1qs03gxaikrxxp9gry6773v3sj";
};
}
{
goPackagePath = "golang.org/x/crypto";
fetch = {
type = "git";
url = "https://go.googlesource.com/crypto";
rev = "575fdbe86e5dd89229707ebec0575ce7d088a4a6";
sha256 = "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa";
};
}
]

View File

@@ -13,5 +13,5 @@ buildGoPackage rec {
sha256 = "1rlzp8kjv0a3dnfhyqcggny0ad648j5csr2x0siq5prahlp48mg4";
};
buildInputs = [ gotools ];
goDeps = ./deps.nix;
}

View File

@@ -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";
};
}
]

View File

@@ -3,7 +3,7 @@
buildGoPackage rec {
name = "go2nix-${version}";
version = "0.1.0";
version = "1.1.0";
rev = "v${version}";
goPackagePath = "github.com/kamilchm/go2nix";
@@ -12,10 +12,10 @@ buildGoPackage rec {
inherit rev;
owner = "kamilchm";
repo = "go2nix";
sha256 = "10nz7gva3n6wk01wphrjjb31sy33kf9ji03zr849x21a669fnmjf";
sha256 = "0asbbcyf1hh8khakych0y09rjarjiywr8pyy1v8ghpr1vvg43a09";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
buildInputs = [ go-bindata goimports makeWrapper ];
preBuild = ''go generate ./...'';

View File

@@ -1,20 +0,0 @@
[
{
"goPackagePath": "github.com/Masterminds/vcs",
"fetch": {
"type": "git",
"url": "https://github.com/Masterminds/vcs",
"rev": "7af28b64c5ec41b1558f5514fd938379822c237c",
"sha256": "127pamr5lkym3iq6z747bm4y4gyc02glrqb61yv82z1rdyv1dcf6"
}
},
{
"goPackagePath": "github.com/jawher/mow.cli",
"fetch": {
"type": "git",
"url": "https://github.com/jawher/mow.cli",
"rev": "772320464101e904cd51198160eb4d489be9cc49",
"sha256": "1a8hnh2k3vc3prjhnz4rjbiwhqq6r3mi18h9cdb6fc6s6yzjc19j"
}
}
]

View File

@@ -0,0 +1,20 @@
[
{
goPackagePath = "github.com/Masterminds/vcs";
fetch = {
type = "git";
url = "https://github.com/Masterminds/vcs";
rev = "7af28b64c5ec41b1558f5514fd938379822c237c";
sha256 = "127pamr5lkym3iq6z747bm4y4gyc02glrqb61yv82z1rdyv1dcf6";
};
}
{
goPackagePath = "github.com/jawher/mow.cli";
fetch = {
type = "git";
url = "https://github.com/jawher/mow.cli";
rev = "772320464101e904cd51198160eb4d489be9cc49";
sha256 = "1a8hnh2k3vc3prjhnz4rjbiwhqq6r3mi18h9cdb6fc6s6yzjc19j";
};
}
]

View File

@@ -14,5 +14,5 @@ buildGoPackage rec {
sha256 = "024dllcmpg8lx78cqgq551i6f9w6qlykfcx8l7yazak9kjwhpwjg";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
}

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "golang.org/x/tools",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/tools",
"rev": "9ae4729fba20b3533d829a9c6ba8195b068f2abc",
"sha256": "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "golang.org/x/tools";
fetch = {
type = "git";
url = "https://go.googlesource.com/tools";
rev = "9ae4729fba20b3533d829a9c6ba8195b068f2abc";
sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1";
};
}
]

View File

@@ -14,7 +14,7 @@ buildGoPackage rec {
sha256 = "1j51aaskfqc953p5s9naqimr04hzfijm4yczdsiway1xnnvvpfr1";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
preConfigure = ''
# Make the builtin tools available here

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "golang.org/x/net",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/net",
"rev": "62ac18b461605b4be188bbc7300e9aa2bc836cd4",
"sha256": "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "62ac18b461605b4be188bbc7300e9aa2bc836cd4";
sha256 = "0lwwvbbwbf3yshxkfhn6z20gd45dkvnmw2ms36diiy34krgy402p";
};
}
]

View File

@@ -14,5 +14,5 @@ buildGoPackage rec {
sha256 = "14jb2vgfr6dv7zlw8i3ilmp125m5l28ljv41a66c9b8gijhm48k1";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
}

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "github.com/mitchellh/iochan",
"fetch": {
"type": "git",
"url": "https://github.com/mitchellh/iochan",
"rev": "b584a329b193e206025682ae6c10cdbe03b0cd77",
"sha256": "1fcwdhfci41ibpng2j4c1bqfng578cwzb3c00yw1lnbwwhaq9r6b"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "github.com/mitchellh/iochan";
fetch = {
type = "git";
url = "https://github.com/mitchellh/iochan";
rev = "b584a329b193e206025682ae6c10cdbe03b0cd77";
sha256 = "1fcwdhfci41ibpng2j4c1bqfng578cwzb3c00yw1lnbwwhaq9r6b";
};
}
]

View File

@@ -14,7 +14,7 @@ buildGoPackage rec {
fetchSubmodules = false;
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
meta = {
description = "A pair programming tool and library written in Golang";
homepage = "https://github.com/jeffail/leaps/";

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "golang.org/x/net",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/net",
"rev": "07b51741c1d6423d4a6abab1c49940ec09cb1aaf",
"sha256": "12lvdj0k2gww4hw5f79qb9yswqpy4i3bgv1likmf3mllgdxfm20w"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "07b51741c1d6423d4a6abab1c49940ec09cb1aaf";
sha256 = "12lvdj0k2gww4hw5f79qb9yswqpy4i3bgv1likmf3mllgdxfm20w";
};
}
]

View File

@@ -12,7 +12,7 @@ buildGoPackage rec {
sha256 = "0lhsqca3lq3xvdwsmrngv4p6b7k2lkbfnxnk5qj6jdd5y7f4b496";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
meta = with lib; {
description = "Convert between TOML, YAML and JSON";

View File

@@ -1,20 +0,0 @@
[
{
"goPackagePath": "gopkg.in/yaml.v2",
"fetch": {
"type": "git",
"url": "https://gopkg.in/yaml.v2",
"rev": "a83829b6f1293c91addabc89d0571c246397bbf4",
"sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"
}
},
{
"goPackagePath": "github.com/BurntSushi/toml",
"fetch": {
"type": "git",
"url": "https://github.com/BurntSushi/toml",
"rev": "056c9bc7be7190eaa7715723883caffa5f8fa3e4",
"sha256": "0gkgkw04ndr5y7hrdy0r4v2drs5srwfcw2bs1gyas066hwl84xyw"
}
}
]

View File

@@ -0,0 +1,20 @@
[
{
goPackagePath = "gopkg.in/yaml.v2";
fetch = {
type = "git";
url = "https://gopkg.in/yaml.v2";
rev = "a83829b6f1293c91addabc89d0571c246397bbf4";
sha256 = "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh";
};
}
{
goPackagePath = "github.com/BurntSushi/toml";
fetch = {
type = "git";
url = "https://github.com/BurntSushi/toml";
rev = "056c9bc7be7190eaa7715723883caffa5f8fa3e4";
sha256 = "0gkgkw04ndr5y7hrdy0r4v2drs5srwfcw2bs1gyas066hwl84xyw";
};
}
]

View File

@@ -14,7 +14,7 @@ buildGoPackage rec {
sha256 = "1b61w4pc5gl7m12mphricihzq7ifnzwn0yyw3ypv0d0fj26h5hc3";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
meta = with stdenv.lib; {
description = "Execute SQL against structured text like CSV or TSV";

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "github.com/mattn/go-sqlite3",
"fetch": {
"type": "git",
"url": "https://github.com/mattn/go-sqlite3",
"rev": "b4142c444a8941d0d92b0b7103a24df9cd815e42",
"sha256": "0xq2y4am8dz9w9aaq24s1npg1sn8pf2gn4nki73ylz2fpjwq9vla"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "github.com/mattn/go-sqlite3";
fetch = {
type = "git";
url = "https://github.com/mattn/go-sqlite3";
rev = "b4142c444a8941d0d92b0b7103a24df9cd815e42";
sha256 = "0xq2y4am8dz9w9aaq24s1npg1sn8pf2gn4nki73ylz2fpjwq9vla";
};
}
]