diff options
author | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-08-11 23:07:09 +0200 |
---|---|---|
committer | Kamil Chmielewski <kamil.chm@gmail.com> | 2016-08-11 23:07:09 +0200 |
commit | da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf (patch) | |
tree | 10e34ffdf51e8e9dcb22d247d4096caea0b7a386 /pkgs/shells/oh | |
parent | e26ac7afd49daefc6d0dd560e3c2ccda56233149 (diff) | |
download | nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar.gz nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar.bz2 nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar.lz nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar.xz nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.tar.zst nixpkgs-da3ddd48e41dbc2e507da5ddc1cda2a10ae6f9bf.zip |
buildGoPackage: remove Go deps file `libs.json`
After #16017 there were a lot of comments saying that `nix` would be better than `JSON` for Go packages dependency sets. As said in https://github.com/NixOS/nixpkgs/pull/16017#issuecomment-229624046 > Because of the content-addressable store, if two programs have the > same dependency it will already result in the same derivation in > the > store. Git also has compression in the pack files so it won't make > much difference to duplicate the dependencies on disk. And finally > most users will just use the binary builds so it won't make any > differences to them. This PR removes `libs.json` file and puts all package dependencies in theirs `deps.json`.
Diffstat (limited to 'pkgs/shells/oh')
-rw-r--r-- | pkgs/shells/oh/deps.json | 35 |
1 files changed, 27 insertions, 8 deletions
diff --git a/pkgs/shells/oh/deps.json b/pkgs/shells/oh/deps.json index a0e67ed42dc..5aabd0e6dba 100644 --- a/pkgs/shells/oh/deps.json +++ b/pkgs/shells/oh/deps.json @@ -1,10 +1,29 @@ [ - { - "include": "../../libs.json", - "packages": [ - "github.com/michaelmacinnis/adapted", - "github.com/peterh/liner", - "golang.org/x/sys" - ] - } + { + "goPackagePath": "golang.org/x/sys", + "fetch": { + "type": "git", + "url": "https://go.googlesource.com/sys", + "rev": "d9157a9621b69ad1d8d77a1933590c416593f24f", + "sha256": "1asdbp7rj1j1m1aar1a022wpcwbml6zih6cpbxaw7b2m8v8is931" + } + }, + { + "goPackagePath": "github.com/michaelmacinnis/adapted", + "fetch": { + "type": "git", + "url": "https://github.com/michaelmacinnis/adapted", + "rev": "0dd5fa34d6f9d74c7c0deed1fc224f9a87e02978", + "sha256": "16n3a87m33pqx4qih713q3gw2j6ksj1q3ngjax6bpn5b11rqvikv" + } + }, + { + "goPackagePath": "github.com/peterh/liner", + "fetch": { + "type": "git", + "url": "https://github.com/peterh/liner", + "rev": "ad1edfd30321d8f006ccf05f1e0524adeb943060", + "sha256": "0c24d9j1gnq7r982h1l2isp3d37379qw155hr8ihx9i2mhpfz317" + } + } ] |