2017-10-23 01:46:40 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ipget";
|
2019-03-04 23:03:54 +00:00
|
|
|
version = "0.3.2";
|
2017-10-23 01:46:40 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/ipfs/ipget";
|
2019-03-04 23:03:54 +00:00
|
|
|
|
2017-10-23 01:46:40 +00:00
|
|
|
extraSrcPaths = [
|
|
|
|
(fetchgx {
|
2019-08-15 12:41:18 +00:00
|
|
|
inherit src;name = "${pname}-${version}";
|
2019-03-04 23:03:54 +00:00
|
|
|
sha256 = "07l9hpkhk5phr95zp1l5wd3ii38bw91hy4dlw2rsfbzcsc8bq4s8";
|
2017-10-23 01:46:40 +00:00
|
|
|
})
|
|
|
|
];
|
2019-03-04 23:03:54 +00:00
|
|
|
|
2017-10-23 01:46:40 +00:00
|
|
|
goDeps = ../../../tools/package-management/gx/deps.nix;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "ipget";
|
|
|
|
inherit rev;
|
2019-03-04 23:03:54 +00:00
|
|
|
sha256 = "1ljf5ddvc1p5swmgn4m1ivfj74fykk56myk2r9c4grdjzksf4a15";
|
2017-10-23 01:46:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Retrieve files over IPFS and save them locally";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://ipfs.io/";
|
2017-10-23 01:46:40 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|