nixpkgs/pkgs/tools/package-management/gx/default.nix
2016-06-19 13:45:16 +01:00

31 lines
917 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.json;
meta = with stdenv.lib; {
description = "A packaging tool built around IPFS";
homepage = https://github.com/whyrusleeping/gx;
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
};
}