summary refs log tree commit diff
path: root/pkgs/applications/networking/ipfs-migrator/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/networking/ipfs-migrator/default.nix')
-rw-r--r--pkgs/applications/networking/ipfs-migrator/default.nix22
1 files changed, 10 insertions, 12 deletions
diff --git a/pkgs/applications/networking/ipfs-migrator/default.nix b/pkgs/applications/networking/ipfs-migrator/default.nix
index 578ac9b0479..727f89da9a2 100644
--- a/pkgs/applications/networking/ipfs-migrator/default.nix
+++ b/pkgs/applications/networking/ipfs-migrator/default.nix
@@ -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";
+
+  subPackages = [ "." ];
 
-  meta = with stdenv.lib; {
-    description = "Migration tool for ipfs repositories";
+  meta = with lib; {
+    description = "Migrations for the filesystem repository of ipfs clients";
     homepage = "https://ipfs.io/";
     license = licenses.mit;
     platforms = platforms.unix;