nixpkgs/pkgs/applications/networking/ipfs/default.nix

32 lines
769 B
Nix
Raw Normal View History

2016-10-29 04:19:41 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
2016-06-06 01:46:06 +01:00
buildGoPackage rec {
2016-06-06 01:46:06 +01:00
name = "ipfs-${version}";
2017-05-24 15:31:17 +01:00
version = "0.4.9";
rev = "7ea34c6c6ed18e886f869a1fbe725a848d13695c";
2016-06-06 01:46:06 +01:00
goPackagePath = "github.com/ipfs/go-ipfs";
2016-10-29 04:19:41 +01:00
extraSrcPaths = [
(fetchgx {
inherit name src;
2017-05-24 15:31:17 +01:00
sha256 = "1xgk9gdnlcxkrpj98h2mrnlpr9b8084k4q926i4pbmxipwxkwl4b";
2016-10-29 04:19:41 +01:00
})
];
2016-06-06 01:46:06 +01:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2017-05-24 15:31:17 +01:00
sha256 = "1n2m2yah54cx4i9nlcsmljrwqi3wqxih517y8jpyjij6wraa334j";
2016-06-06 01:46:06 +01:00
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
2016-10-29 04:19:41 +01:00
homepage = https://ipfs.io/;
2016-06-06 01:46:06 +01:00
license = licenses.mit;
2016-10-29 04:19:41 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
2016-06-06 01:46:06 +01:00
};
}