depot/third_party/nixpkgs/pkgs/by-name/ku/kubo-migrator/package.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";
};
}