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

36 lines
795 B
Nix
Raw Normal View History

2020-05-08 09:34:42 +01:00
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
2016-06-06 01:46:06 +01:00
buildGoModule rec {
pname = "ipfs";
2020-04-29 17:57:30 +01:00
version = "0.5.0";
2017-10-02 19:35:45 +01:00
rev = "v${version}";
2016-06-06 01:46:06 +01:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2020-04-29 17:57:30 +01:00
sha256 = "0dbyvs49wyqj46c8hvz0fr4vpgfrdj1h8blniwzjf0jabgvw8nik";
2016-06-06 01:46:06 +01:00
};
2020-03-13 19:37:56 +00:00
postPatch = ''
rm -rf test/dependencies
2020-05-07 15:26:09 +01:00
patchShebangs plugin/loader/preload.sh
'';
buildPhase = ''
make install
2020-03-13 19:37:56 +00:00
'';
2020-05-08 10:49:10 +01:00
passthru.tests.ipfs = nixosTests.ipfs;
2020-05-08 09:34:42 +01:00
2020-04-29 17:57:30 +01:00
modSha256 = "00xgsvpl47miy6paxl8yn6p76h6ssccackh50z0l4r5s7wcc25q8";
2016-06-06 01:46:06 +01:00
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
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
};
}