mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
31 lines
733 B
Nix
31 lines
733 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, Security }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ipfs";
|
|
version = "0.4.23";
|
|
rev = "v${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ipfs";
|
|
repo = "go-ipfs";
|
|
inherit rev;
|
|
sha256 = "19m1bhqf1jghdv2ngdnjdk1kvjcxbkgm1ccdkmkabv4ii43h8jwm";
|
|
};
|
|
|
|
postPatch = ''
|
|
rm -rf test/dependencies
|
|
'';
|
|
|
|
modSha256 = "12m4ind1s8zaa6kssblc28z2cafy20w2jp80kzif39hg5ar9bijm";
|
|
|
|
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
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 ];
|
|
};
|
|
}
|