3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/ipfs/default.nix

29 lines
656 B
Nix
Raw Normal View History

{ stdenv, buildGoPackage, fetchFromGitHub, gx, gx-go }:
2016-06-06 01:46:06 +01:00
buildGoPackage rec {
2016-06-06 01:46:06 +01:00
name = "ipfs-${version}";
version = "0.4.4";
rev = "d905d485192616abaea25f7e721062a9e1093ab9";
2016-06-06 01:46:06 +01:00
goPackagePath = "github.com/ipfs/go-ipfs";
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
sha256 = "06iq7fmq7p0854aqrnmd0f0jvnxy9958wvw7ibn754fdfii9l84l";
2016-06-06 01:46:06 +01:00
};
buildInputs = [ gx gx-go ];
# Extra build step for gx dependecies
preBuild = ''
(cd "go/src/${goPackagePath}"; gx install)
'';
2016-06-06 01:46:06 +01:00
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
license = licenses.mit;
};
}