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

32 lines
741 B
Nix
Raw Normal View History

2016-10-29 04:19:41 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
2016-06-06 01:46:06 +01:00
buildGoPackage rec {
2016-06-06 01:46:06 +01:00
name = "ipfs-${version}";
2018-06-02 10:16:45 +01:00
version = "0.4.15";
2017-10-02 19:35:45 +01:00
rev = "v${version}";
2016-06-06 01:46:06 +01:00
goPackagePath = "github.com/ipfs/go-ipfs";
2016-10-29 04:19:41 +01:00
extraSrcPaths = [
(fetchgx {
inherit name src;
2018-06-02 10:16:45 +01:00
sha256 = "0bysfh2hd040i8lnyzhy96frflls4kdnlw748cl51ngqg3rwbhgz";
2016-10-29 04:19:41 +01:00
})
];
2016-06-06 01:46:06 +01:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2018-06-02 10:16:45 +01:00
sha256 = "1ry4a4pq26dbwy2b9cwi3xjaiyq6sng9lxnb1n30zxhp4w7rla2h";
2016-06-06 01:46:06 +01:00
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
2016-10-29 04:19:41 +01:00
homepage = https://ipfs.io/;
2016-06-06 01:46:06 +01:00
license = licenses.mit;
2016-10-29 04:19:41 +01:00
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
2016-06-06 01:46:06 +01:00
};
}