3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/package-management/gx/default.nix
Kamil Chmielewski 914e0e594c 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
2016-09-16 00:04:55 +01:00

31 lines
916 B
Nix

# This file was generated by go2nix.
{ stdenv, buildGoPackage, fetchgit, fetchhg, fetchbzr, fetchsvn }:
buildGoPackage rec {
name = "gx-${version}";
version = "20160601-${stdenv.lib.strings.substring 0 7 rev}";
rev = "f84ddf792ceb329e20c857731154798e1ce87314";
goPackagePath = "github.com/whyrusleeping/gx";
src = fetchgit {
inherit rev;
url = "https://github.com/whyrusleeping/gx";
sha256 = "10a6p9ba526jr6m66x3vsa3xsjlnzv7yma8vyp8d0bf0hs44bpih";
};
prePatch = ''
substituteInPlace tests/lib/random-dep.go \
--replace "github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-random" "github.com/jbenet/go-random"
'';
goDeps = ./deps.nix;
meta = with stdenv.lib; {
description = "A packaging tool built around IPFS";
homepage = https://github.com/whyrusleeping/gx;
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
};
}