26 lines
571 B
Nix
26 lines
571 B
Nix
{
|
|
lib,
|
|
buildEnv,
|
|
makeWrapper,
|
|
kubo-migrator-unwrapped,
|
|
kubo-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-fs-repo-migrations ]}'
|
|
'';
|
|
|
|
meta = kubo-migrator-unwrapped.meta // {
|
|
description = "Run the appripriate migrations for migrating the filesystem repository of Kubo";
|
|
};
|
|
}
|