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

@@ -16,7 +16,7 @@ buildGoPackage rec {
buildInputs = [ ncurses ];
goDeps = ./deps.json;
goDeps = ./deps.nix;
patchPhase = ''
sed -i -e "s|expand('<sfile>:h:h').'/bin/fzf'|'$bin/bin/fzf'|" plugin/fzf.vim

View File

@@ -1,20 +0,0 @@
[
{
"goPackagePath": "github.com/junegunn/go-runewidth",
"fetch": {
"type": "git",
"url": "https://github.com/junegunn/go-runewidth",
"rev": "63c378b851290989b19ca955468386485f118c65",
"sha256": "1z5mhfrpqdssn3603vwd95w69z28igwq96lh7b9rrdcx440i822d"
}
},
{
"goPackagePath": "github.com/junegunn/go-shellwords",
"fetch": {
"type": "git",
"url": "https://github.com/junegunn/go-shellwords",
"rev": "35d512af75e283aae4ca1fc3d44b159ed66189a4",
"sha256": "08la0axabk9hiba9mm4ypp6a116qhvdlxa1jvkxhv3d4zpjsp4n7"
}
}
]

View File

@@ -0,0 +1,20 @@
[
{
goPackagePath = "github.com/junegunn/go-runewidth";
fetch = {
type = "git";
url = "https://github.com/junegunn/go-runewidth";
rev = "63c378b851290989b19ca955468386485f118c65";
sha256 = "1z5mhfrpqdssn3603vwd95w69z28igwq96lh7b9rrdcx440i822d";
};
}
{
goPackagePath = "github.com/junegunn/go-shellwords";
fetch = {
type = "git";
url = "https://github.com/junegunn/go-shellwords";
rev = "35d512af75e283aae4ca1fc3d44b159ed66189a4";
sha256 = "08la0axabk9hiba9mm4ypp6a116qhvdlxa1jvkxhv3d4zpjsp4n7";
};
}
]

View File

@@ -15,5 +15,5 @@ buildGoPackage rec {
sha256 = "0bbmbb1xxdgvqvg1ssn9d4j213li7bbbx3y42iz4fs10xv7x4r0c";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
}

View File

@@ -1,29 +0,0 @@
[
{
"goPackagePath": "golang.org/x/sys",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/sys",
"rev": "d9157a9621b69ad1d8d77a1933590c416593f24f",
"sha256": "1asdbp7rj1j1m1aar1a022wpcwbml6zih6cpbxaw7b2m8v8is931"
}
},
{
"goPackagePath": "gopkg.in/fsnotify.v1",
"fetch": {
"type": "git",
"url": "https://gopkg.in/fsnotify.v1",
"rev": "96c060f6a6b7e0d6f75fddd10efeaca3e5d1bcb0",
"sha256": "1308z1by82fbymcra26wjzw7lpjy91kbpp2skmwqcq4q1iwwzvk2"
}
},
{
"goPackagePath": "gopkg.in/yaml.v2",
"fetch": {
"type": "git",
"url": "https://gopkg.in/yaml.v2",
"rev": "a83829b6f1293c91addabc89d0571c246397bbf4",
"sha256": "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh"
}
}
]

View File

@@ -0,0 +1,29 @@
[
{
goPackagePath = "golang.org/x/sys";
fetch = {
type = "git";
url = "https://go.googlesource.com/sys";
rev = "d9157a9621b69ad1d8d77a1933590c416593f24f";
sha256 = "1asdbp7rj1j1m1aar1a022wpcwbml6zih6cpbxaw7b2m8v8is931";
};
}
{
goPackagePath = "gopkg.in/fsnotify.v1";
fetch = {
type = "git";
url = "https://gopkg.in/fsnotify.v1";
rev = "96c060f6a6b7e0d6f75fddd10efeaca3e5d1bcb0";
sha256 = "1308z1by82fbymcra26wjzw7lpjy91kbpp2skmwqcq4q1iwwzvk2";
};
}
{
goPackagePath = "gopkg.in/yaml.v2";
fetch = {
type = "git";
url = "https://gopkg.in/yaml.v2";
rev = "a83829b6f1293c91addabc89d0571c246397bbf4";
sha256 = "1m4dsmk90sbi17571h6pld44zxz7jc4lrnl4f27dpd1l8g5xvjhh";
};
}
]

View File

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

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "github.com/vincent-petithory/structfield",
"fetch": {
"type": "git",
"url": "https://github.com/vincent-petithory/structfield",
"rev": "01a738558a47fbf16712994d1737fb31c77e7d11",
"sha256": "1kyx71z13mf6hc8ly0j0b9zblgvj5lzzvgnc3fqh61wgxrsw24dw"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "github.com/vincent-petithory/structfield";
fetch = {
type = "git";
url = "https://github.com/vincent-petithory/structfield";
rev = "01a738558a47fbf16712994d1737fb31c77e7d11";
sha256 = "1kyx71z13mf6hc8ly0j0b9zblgvj5lzzvgnc3fqh61wgxrsw24dw";
};
}
]

View File

@@ -21,7 +21,7 @@ buildGoPackage rec {
sha256 = "142vxgniri1mfy2xmfgxhbdp6k6h8c5milv454krv1b51v43hsbm";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
# Mongodb incorrectly names all of their binaries main
# Let's work around this with our own installer

View File

@@ -1,47 +0,0 @@
[
{
"goPackagePath": "golang.org/x/crypto",
"fetch": {
"type": "git",
"url": "https://go.googlesource.com/crypto",
"rev": "575fdbe86e5dd89229707ebec0575ce7d088a4a6",
"sha256": "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa"
}
},
{
"goPackagePath": "github.com/howeyc/gopass",
"fetch": {
"type": "git",
"url": "https://github.com/howeyc/gopass",
"rev": "2c70fa70727c953c51695f800f25d6b44abb368e",
"sha256": "152lrkfxk205rlxiign0w5wb0fmfh910yz4jhlv4f4l1qr1h2lx8"
}
},
{
"goPackagePath": "gopkg.in/mgo.v2",
"fetch": {
"type": "git",
"url": "https://gopkg.in/mgo.v2",
"rev": "c6a7dce14133ccac2dcac3793f1d6e2ef048503a",
"sha256": "0rg232q1bkq3y3kd5816hgk1jpf7i38aha5q5ia7j6p9xashz7vj"
}
},
{
"goPackagePath": "gopkg.in/tomb.v2",
"fetch": {
"type": "git",
"url": "https://gopkg.in/tomb.v2",
"rev": "14b3d72120e8d10ea6e6b7f87f7175734b1faab8",
"sha256": "1nza31jvkpka5431c4bdbirvjdy36b1b55sbzljqhqih25jrcjx5"
}
},
{
"goPackagePath": "github.com/jessevdk/go-flags",
"fetch": {
"type": "git",
"url": "https://github.com/jessevdk/go-flags",
"rev": "1b89bf73cd2c3a911d7b2a279ab085c4a18cf539",
"sha256": "027nglc5xx1cm03z9sisg0iqrhwcj6gh5z254rrpl8p4fwrxx680"
}
}
]

View File

@@ -0,0 +1,47 @@
[
{
goPackagePath = "golang.org/x/crypto";
fetch = {
type = "git";
url = "https://go.googlesource.com/crypto";
rev = "575fdbe86e5dd89229707ebec0575ce7d088a4a6";
sha256 = "1kgv1mkw9y404pk3lcwbs0vgl133mwyp294i18jg9hp10s5d56xa";
};
}
{
goPackagePath = "github.com/howeyc/gopass";
fetch = {
type = "git";
url = "https://github.com/howeyc/gopass";
rev = "2c70fa70727c953c51695f800f25d6b44abb368e";
sha256 = "152lrkfxk205rlxiign0w5wb0fmfh910yz4jhlv4f4l1qr1h2lx8";
};
}
{
goPackagePath = "gopkg.in/mgo.v2";
fetch = {
type = "git";
url = "https://gopkg.in/mgo.v2";
rev = "c6a7dce14133ccac2dcac3793f1d6e2ef048503a";
sha256 = "0rg232q1bkq3y3kd5816hgk1jpf7i38aha5q5ia7j6p9xashz7vj";
};
}
{
goPackagePath = "gopkg.in/tomb.v2";
fetch = {
type = "git";
url = "https://gopkg.in/tomb.v2";
rev = "14b3d72120e8d10ea6e6b7f87f7175734b1faab8";
sha256 = "1nza31jvkpka5431c4bdbirvjdy36b1b55sbzljqhqih25jrcjx5";
};
}
{
goPackagePath = "github.com/jessevdk/go-flags";
fetch = {
type = "git";
url = "https://github.com/jessevdk/go-flags";
rev = "1b89bf73cd2c3a911d7b2a279ab085c4a18cf539";
sha256 = "027nglc5xx1cm03z9sisg0iqrhwcj6gh5z254rrpl8p4fwrxx680";
};
}
]

View File

@@ -19,5 +19,5 @@ buildGoPackage rec {
sha256 = "16zlvn53p9m10ph8n9gps51fkkvl6sf4afdzni6azk05j0ng49jw";
};
goDeps = ./deps.json;
goDeps = ./deps.nix;
}

View File

@@ -1,11 +0,0 @@
[
{
"goPackagePath": "github.com/godbus/dbus",
"fetch": {
"type": "git",
"url": "https://github.com/godbus/dbus",
"rev": "32c6cc29c14570de4cf6d7e7737d68fb2d01ad15",
"sha256": "0v401f761l88yapiaw23pxvxviqrwl2r2vfd6lq02044i7x4i5r3"
}
}
]

View File

@@ -0,0 +1,11 @@
[
{
goPackagePath = "github.com/godbus/dbus";
fetch = {
type = "git";
url = "https://github.com/godbus/dbus";
rev = "32c6cc29c14570de4cf6d7e7737d68fb2d01ad15";
sha256 = "0v401f761l88yapiaw23pxvxviqrwl2r2vfd6lq02044i7x4i5r3";
};
}
]