2020-03-21 13:28:00 +03:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
2016-06-06 03:46:06 +03:00
|
|
|
|
2019-06-10 04:47:55 +03:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ipfs";
|
2020-03-13 22:37:56 +03:00
|
|
|
version = "0.4.23";
|
2017-10-02 21:35:45 +03:00
|
|
|
rev = "v${version}";
|
2016-06-06 03:46:06 +03:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "go-ipfs";
|
|
|
|
inherit rev;
|
2020-03-13 22:37:56 +03:00
|
|
|
sha256 = "19m1bhqf1jghdv2ngdnjdk1kvjcxbkgm1ccdkmkabv4ii43h8jwm";
|
2016-06-06 03:46:06 +03:00
|
|
|
};
|
|
|
|
|
2020-03-13 22:37:56 +03:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf test/dependencies
|
|
|
|
'';
|
|
|
|
|
|
|
|
modSha256 = "12m4ind1s8zaa6kssblc28z2cafy20w2jp80kzif39hg5ar9bijm";
|
2019-06-10 04:47:55 +03:00
|
|
|
|
2020-03-21 13:28:00 +03:00
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
2016-06-06 03:46:06 +03:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A global, versioned, peer-to-peer filesystem";
|
2016-10-29 06:19:41 +03:00
|
|
|
homepage = https://ipfs.io/;
|
2016-06-06 03:46:06 +03:00
|
|
|
license = licenses.mit;
|
2016-10-29 06:19:41 +03:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2016-06-06 03:46:06 +03:00
|
|
|
};
|
|
|
|
}
|