35 lines
795 B
Nix
35 lines
795 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, nixosTests }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ipfs";
|
|
version = "0.5.0";
|
|
rev = "v${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ipfs";
|
|
repo = "go-ipfs";
|
|
inherit rev;
|
|
sha256 = "0dbyvs49wyqj46c8hvz0fr4vpgfrdj1h8blniwzjf0jabgvw8nik";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm -rf test/dependencies
|
|
patchShebangs plugin/loader/preload.sh
|
|
'';
|
|
|
|
buildPhase = ''
|
|
make install
|
|
'';
|
|
|
|
passthru.tests.ipfs = nixosTests.ipfs;
|
|
|
|
modSha256 = "00xgsvpl47miy6paxl8yn6p76h6ssccackh50z0l4r5s7wcc25q8";
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A global, versioned, peer-to-peer filesystem";
|
|
homepage = "https://ipfs.io/";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|