mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
eefaaf41d6
Go-IPFS was renamed to Kubo in version 0.14.0, see https://github.com/ipfs/kubo/issues/8959.
24 lines
484 B
Nix
24 lines
484 B
Nix
{ lib
|
|
, buildEnv
|
|
, makeWrapper
|
|
, kubo-migrator-unwrapped
|
|
, kubo-migrator-all-fs-repo-migrations
|
|
}:
|
|
|
|
buildEnv {
|
|
name = "kubo-migrator-${kubo-migrator-unwrapped.version}";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
paths = [ kubo-migrator-unwrapped ];
|
|
|
|
pathsToLink = [ "/bin" ];
|
|
|
|
postBuild = ''
|
|
wrapProgram "$out/bin/fs-repo-migrations" \
|
|
--prefix PATH ':' '${lib.makeBinPath [ kubo-migrator-all-fs-repo-migrations ]}'
|
|
'';
|
|
|
|
inherit (kubo-migrator-unwrapped) meta;
|
|
}
|