nixpkgs/pkgs/applications/networking/ipfs/default.nix
Maximilian Güntner 84e7ad1eb7
ipfs: 0.4.4 -> 0.4.5
0.4.5 introduces a new repo format. You might need
to run a migration:

https://github.com/ipfs/fs-repo-migrations
2017-02-12 19:50:54 +01:00

32 lines
769 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
buildGoPackage rec {
name = "ipfs-${version}";
version = "0.4.5";
rev = "2cb68b2210ba883bcd38a429ed62b7f832f8c064";
goPackagePath = "github.com/ipfs/go-ipfs";
extraSrcPaths = [
(fetchgx {
inherit name src;
sha256 = "0lq4najagdcga0zfprccprjy94nq46ja2gajij2pycag0wcc538d";
})
];
src = fetchFromGitHub {
owner = "ipfs";
repo = "go-ipfs";
inherit rev;
sha256 = "087478rdj9cfl8hfrhrbb8rdlh7b1ixdj127vvkgn2k3mlz6af47";
};
meta = with stdenv.lib; {
description = "A global, versioned, peer-to-peer filesystem";
homepage = https://ipfs.io/;
license = licenses.mit;
platforms = platforms.unix;
maintainers = with maintainers; [ fpletz ];
};
}