summary refs log tree commit diff
path: root/pkgs/applications/networking/ipget/default.nix
blob: 6a9bcaf32d22b895718ddca170c563e96d000831 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, buildGoPackage, fetchFromGitHub, fetchgx }:

buildGoPackage rec {
  pname = "ipget";
  version = "0.3.2";
  rev = "v${version}";

  goPackagePath = "github.com/ipfs/ipget";

  extraSrcPaths = [
    (fetchgx {
      inherit  src;name = "${pname}-${version}";
      sha256 = "07l9hpkhk5phr95zp1l5wd3ii38bw91hy4dlw2rsfbzcsc8bq4s8";
    })
  ];

  goDeps = ../../../tools/package-management/gx/deps.nix;

  src = fetchFromGitHub {
    owner = "ipfs";
    repo = "ipget";
    inherit rev;
    sha256 = "1ljf5ddvc1p5swmgn4m1ivfj74fykk56myk2r9c4grdjzksf4a15";
  };

  meta = with stdenv.lib; {
    description = "Retrieve files over IPFS and save them locally";
    homepage = "https://ipfs.io/";
    license = licenses.mit;
    platforms = platforms.unix;
  };
}