2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-10-23 01:46:40 +00:00
|
|
|
|
2020-05-11 19:02:09 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ipget";
|
2023-04-04 09:42:46 +00:00
|
|
|
version = "0.9.2";
|
2017-10-23 01:46:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ipfs";
|
|
|
|
repo = "ipget";
|
2020-05-11 19:02:09 +00:00
|
|
|
rev = "v${version}";
|
2023-04-04 09:42:46 +00:00
|
|
|
hash = "sha256-gcxfsP5awCCau1RqCuXKEdXC2jvpwsGsPkBsiaRlfBU=";
|
2017-10-23 01:46:40 +00:00
|
|
|
};
|
|
|
|
|
2023-04-04 09:42:46 +00:00
|
|
|
vendorHash = "sha256-qCUa/XbfDrbwPSZywNVK/yn88C7Dsmz0cDTG2Z4ho0Y=";
|
2021-07-29 19:01:18 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# main module (github.com/ipfs/ipget) does not contain package github.com/ipfs/ipget/sharness/dependencies
|
|
|
|
rm -r sharness/dependencies/
|
|
|
|
'';
|
2020-05-11 19:02:09 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-10-23 01:46:40 +00:00
|
|
|
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;
|
2020-05-11 19:02:09 +00:00
|
|
|
maintainers = with maintainers; [ Luflosi ];
|
2017-10-23 01:46:40 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|