nixpkgs-suyu/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}";
2017-11-18 04:38:35 +01:00
version = "0.4.13";
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;
2017-11-18 04:38:35 +01:00
sha256 = "150lhf5999jz0nck5s0fs0fp3pgaj85s7dndh68h9caw1fwpwb4f";
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-11-18 04:38:35 +01:00
sha256 = "103mlsnqfnnqxh4phr192haaiv98d1bwpvca1sqrxz1216r5x0ik";
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
};
}