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

32 lines
770 B
Nix
Raw Normal View History

2016-10-29 06:19:41 +03:00
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
2016-06-06 03:46:06 +03:00
buildGoPackage rec {
2016-06-06 03:46:06 +03:00
name = "ipfs-${version}";
2017-07-01 03:31:52 +03:00
version = "0.4.10";
rev = "4679f806bd00c0a5299c22c82d1fbfdbad928e6d";
2016-06-06 03:46:06 +03:00
goPackagePath = "github.com/ipfs/go-ipfs";
2016-10-29 06:19:41 +03:00
extraSrcPaths = [
(fetchgx {
inherit name src;
2017-07-01 03:31:52 +03:00
sha256 = "1khlsahv9vqx3h2smif5wdyb56jrza415hqid7883pqimfi66g3x";
2016-10-29 06:19:41 +03:00
})
];
2016-06-06 03:46:06 +03:00
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
2017-07-01 03:31:52 +03:00
sha256 = "1j3az0nhjisb5dxp1a4g8w17y17xjikvcsy4qrg0fm43ybpkhhvw";
2016-06-06 03:46:06 +03:00
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
2016-10-29 06:19:41 +03:00
homepage = https://ipfs.io/;
2016-06-06 03:46:06 +03:00
license = licenses.mit;
2016-10-29 06:19:41 +03:00
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
2016-06-06 03:46:06 +03:00
};
}