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

32 lines
741 B
Nix
Raw Normal View History

2016-10-29 05:19:41 +02:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
2016-06-06 02:46:06 +02:00
buildGoPackage rec {
2016-06-06 02:46:06 +02:00
name = "ipfs-${version}";
2018-08-09 08:46:57 +02:00
version = "0.4.17";
2017-10-02 20:35:45 +02:00
rev = "v${version}";
2016-06-06 02:46:06 +02:00
goPackagePath = "github.com/ipfs/go-ipfs";
2016-10-29 05:19:41 +02:00
extraSrcPaths = [
(fetchgx {
inherit name src;
2018-08-09 08:46:57 +02:00
sha256 = "0grdgnr67r3qh0ppc3flrhcw8zlvx10mxypd8q2mhkil9w4dpcna";
2016-10-29 05:19:41 +02:00
})
];
2016-06-06 02:46:06 +02:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2018-08-09 08:46:57 +02:00
sha256 = "18skmchdqd54wfqhibscqvc360l5ig6vmxd73ivf3bcpj3zvgq7q";
2016-06-06 02:46:06 +02:00
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
2016-10-29 05:19:41 +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
};
}