2016-10-28 20:19:41 -07:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
|
2016-06-05 17:46:06 -07:00
|
|
|
|
2016-08-28 18:47:38 -07:00
|
|
|
buildGoPackage rec {
|
2016-06-05 17:46:06 -07:00
|
|
|
name = "ipfs-${version}";
|
2019-03-01 17:06:04 -08:00
|
|
|
version = "0.4.19";
|
2017-10-02 11:35:45 -07:00
|
|
|
rev = "v${version}";
|
2016-06-05 17:46:06 -07:00
|
|
|
|
|
|
|
goPackagePath = "github.com/ipfs/go-ipfs";
|
|
|
|
|
2016-10-28 20:19:41 -07:00
|
|
|
extraSrcPaths = [
|
|
|
|
(fetchgx {
|
|
|
|
inherit name src;
|
2019-03-01 17:06:04 -08:00
|
|
|
sha256 = "0bj2kzxjssp7szp1wr9pp08bsi55jgf0k7gi4h70phlib2q673j2";
|
2016-10-28 20:19:41 -07:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-06-05 17:46:06 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "go-ipfs";
|
|
|
|
inherit rev;
|
2019-03-01 17:06:04 -08:00
|
|
|
sha256 = "061mgkawimhw3gq506h8m6kw50a2v26qysa5kc5jdqgaqx5yvqh4";
|
2016-06-05 17:46:06 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A global, versioned, peer-to-peer filesystem";
|
2016-10-28 20:19:41 -07:00
|
|
|
homepage = https://ipfs.io/;
|
2016-06-05 17:46:06 -07:00
|
|
|
license = licenses.mit;
|
2016-10-28 20:19:41 -07:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2016-06-05 17:46:06 -07:00
|
|
|
};
|
|
|
|
}
|