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

32 lines
741 B
Nix
Raw Normal View History

2016-10-29 03:19:41 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
2016-06-06 00:46:06 +00:00
buildGoPackage rec {
2016-06-06 00:46:06 +00:00
name = "ipfs-${version}";
2018-11-20 12:31:08 +00:00
version = "0.4.18";
2017-10-02 18:35:45 +00:00
rev = "v${version}";
2016-06-06 00:46:06 +00:00
goPackagePath = "github.com/ipfs/go-ipfs";
2016-10-29 03:19:41 +00:00
extraSrcPaths = [
(fetchgx {
inherit name src;
2018-11-20 12:31:08 +00:00
sha256 = "05d5m6c2i2kl4rvb0hddyqbidn76ljr2zryi8v2r9i8dbi0164gm";
2016-10-29 03:19:41 +00:00
})
];
2016-06-06 00:46:06 +00:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2018-11-20 12:31:08 +00:00
sha256 = "0h4j18qpycfmmlhb9khvhbk8c1zqajflvw8gk3l8j7wxrxh5j2s6";
2016-06-06 00:46:06 +00:00
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
2016-10-29 03:19:41 +00:00
homepage = https://ipfs.io/;
2016-06-06 00:46:06 +00:00
license = licenses.mit;
2016-10-29 03:19:41 +00:00
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
2016-06-06 00:46:06 +00:00
};
}