ipfs-migrator: 7 -> 1.5.1

This commit is contained in:
Philipp Riegger 2020-05-08 13:52:57 +02:00
parent e813d1b30c
commit ec70d7cbc3
3 changed files with 10 additions and 72 deletions

@ -1,24 +1,22 @@
{ stdenv, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage {
buildGoModule rec {
pname = "ipfs-migrator";
version = "7";
goPackagePath = "github.com/ipfs/fs-repo-migrations";
goDeps = ./deps.nix;
version = "1.5.1";
src = fetchFromGitHub {
owner = "ipfs";
repo = "fs-repo-migrations";
rev = "4e8e0b41d7348646c719d572c678c3d0677e541a";
sha256 = "1i6izncgc3wgabppglnnrslffvwrv3cazbdhsk4vjfsd66hb4d37";
rev = "v${version}";
sha256 = "18pjxkxfbsbbj4hs4xyzfmmz991h31785ldx41dll6wa9zx4lsnm";
};
patches = [ ./lru-repo-path-fix.patch ];
modSha256 = "1magqgbb6prnihr8lr6jc2fcgsbqqc9y317mkdnvq9qs6bj0a6qj";
meta = with stdenv.lib; {
description = "Migration tool for ipfs repositories";
subPackages = [ "." ];
meta = with lib; {
description = "Migrations for the filesystem repository of ipfs clients";
homepage = "https://ipfs.io/";
license = licenses.mit;
platforms = platforms.unix;

@ -1,47 +0,0 @@
[
{
goPackagePath = "github.com/jbenet/goprocess";
fetch = {
type = "git";
url = "https://github.com/jbenet/goprocess";
rev = "b497e2f366b8624394fb2e89c10ab607bebdde0b";
sha256 = "1lnvkzki7vnqn5c4m6bigk0k85haicmg27w903kwg30rdvblm82s";
};
}
{
goPackagePath = "github.com/jbenet/go-random";
fetch = {
type = "git";
url = "https://github.com/jbenet/go-random";
rev = "384f606e91f542a98e779e652eed88051618f0f7";
sha256 = "0gcshzl9n3apzc0jaxqrjsc038yfrzfyhpdqgbpcnajin83l2msa";
};
}
{
goPackagePath = "github.com/jbenet/go-random-files";
fetch = {
type = "git";
url = "https://github.com/jbenet/go-random-files";
rev = "737479700b40b4b50e914e963ce8d9d44603e3c8";
sha256 = "1klpdc4qkrfy31r7qh00fcz42blswzabmcnry9byd5adhszxj9bw";
};
}
{
goPackagePath = "github.com/hashicorp/golang-lru";
fetch = {
type = "git";
url = "https://github.com/hashicorp/golang-lru";
rev = "20f1fb78b0740ba8c3cb143a61e86ba5c8669768";
sha256 = "12k2cp2k615fjvfa5hyb9k2alian77wivds8s65diwshwv41939f";
};
}
{
goPackagePath = "golang.org/x/net";
fetch = {
type = "git";
url = "https://go.googlesource.com/net";
rev = "26e67e76b6c3f6ce91f7c52def5af501b4e0f3a2";
sha256 = "17bqkd64zksi1578lb10ls4qf5lbqs7shfjcc6bi97y1qz5k31c4";
};
}
]

@ -1,13 +0,0 @@
diff --git a/ipfs-1-to-2/go-datastore/lru/datastore.go b/ipfs-1-to-2/go-datastore/lru/datastore.go
index 7eb18eb..cd8dcb7 100644
--- a/ipfs-1-to-2/go-datastore/lru/datastore.go
+++ b/ipfs-1-to-2/go-datastore/lru/datastore.go
@@ -3,7 +3,7 @@ package lru
import (
"errors"
- lru "github.com/ipfs/fs-repo-migrations/ipfs-1-to-2/golang-lru"
+ lru "github.com/hashicorp/golang-lru"
ds "github.com/ipfs/fs-repo-migrations/ipfs-1-to-2/go-datastore"
dsq "github.com/ipfs/fs-repo-migrations/ipfs-1-to-2/go-datastore/query"