summary refs log tree commit diff
path: root/pkgs/tools/package-management/gx/default.nix
blob: 89d795c8e505a46474d0f9e90732bdba61e8e9ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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 ];
  };
}