Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
23 lines
484 B
Nix
23 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;
|
|
}
|