summary refs log tree commit diff
path: root/pkgs/applications/networking/ipfs-migrator/default.nix
blob: 578ac9b0479756fe41c9ac3d0081d01887d6c1a9 (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
{ stdenv, buildGoPackage, fetchFromGitHub }:

buildGoPackage {
  pname = "ipfs-migrator";
  version = "7";

  goPackagePath = "github.com/ipfs/fs-repo-migrations";

  goDeps = ./deps.nix;

  src = fetchFromGitHub {
    owner = "ipfs";
    repo = "fs-repo-migrations";
    rev = "4e8e0b41d7348646c719d572c678c3d0677e541a";
    sha256 = "1i6izncgc3wgabppglnnrslffvwrv3cazbdhsk4vjfsd66hb4d37";
  };

  patches = [ ./lru-repo-path-fix.patch ];

  meta = with stdenv.lib; {
    description = "Migration tool for ipfs repositories";
    homepage = "https://ipfs.io/";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = with maintainers; [ elitak ];
  };
}