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

32 lines
770 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}";
2017-07-01 02:31:52 +02:00
version = "0.4.10";
rev = "4679f806bd00c0a5299c22c82d1fbfdbad928e6d";
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;
2017-07-01 02:31:52 +02:00
sha256 = "1khlsahv9vqx3h2smif5wdyb56jrza415hqid7883pqimfi66g3x";
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;
2017-07-01 02:31:52 +02:00
sha256 = "1j3az0nhjisb5dxp1a4g8w17y17xjikvcsy4qrg0fm43ybpkhhvw";
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
};
}