mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
32 lines
741 B
Nix
32 lines
741 B
Nix
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
|
|
|
|
buildGoPackage rec {
|
|
name = "ipfs-${version}";
|
|
version = "0.4.11";
|
|
rev = "v${version}";
|
|
|
|
goPackagePath = "github.com/ipfs/go-ipfs";
|
|
|
|
extraSrcPaths = [
|
|
(fetchgx {
|
|
inherit name src;
|
|
sha256 = "1n8xr9xg23wm255zjm7nxd761xapmsv11a0giks2gaibh4nps1jl";
|
|
})
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ipfs";
|
|
repo = "go-ipfs";
|
|
inherit rev;
|
|
sha256 = "1qi87sq490xpj4mip1d30x4v77gkacnw4idm0mwla92pg44v6wh9";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|