2020-05-08 10:34:42 +02:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
2016-06-06 02:46:06 +02:00
|
|
|
|
2019-06-10 03:47:55 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ipfs";
|
2020-04-29 18:57:30 +02:00
|
|
|
version = "0.5.0";
|
2017-10-02 20:35:45 +02:00
|
|
|
rev = "v${version}";
|
2016-06-06 02:46:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "go-ipfs";
|
|
|
|
inherit rev;
|
2020-04-29 18:57:30 +02:00
|
|
|
sha256 = "0dbyvs49wyqj46c8hvz0fr4vpgfrdj1h8blniwzjf0jabgvw8nik";
|
2016-06-06 02:46:06 +02:00
|
|
|
};
|
|
|
|
|
2020-03-13 20:37:56 +01:00
|
|
|
postPatch = ''
|
|
|
|
rm -rf test/dependencies
|
2020-05-07 16:26:09 +02:00
|
|
|
patchShebangs plugin/loader/preload.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make install
|
2020-03-13 20:37:56 +01:00
|
|
|
'';
|
|
|
|
|
2020-05-08 11:49:10 +02:00
|
|
|
passthru.tests.ipfs = nixosTests.ipfs;
|
2020-05-08 10:34:42 +02:00
|
|
|
|
2020-04-29 18:57:30 +02:00
|
|
|
modSha256 = "00xgsvpl47miy6paxl8yn6p76h6ssccackh50z0l4r5s7wcc25q8";
|
2019-06-10 03:47:55 +02:00
|
|
|
|
2016-06-06 02:46:06 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A global, versioned, peer-to-peer filesystem";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://ipfs.io/";
|
2016-06-06 02:46:06 +02:00
|
|
|
license = licenses.mit;
|
2016-10-29 05:19:41 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2016-06-06 02:46:06 +02:00
|
|
|
};
|
|
|
|
}
|