nix/make-bundled: parameterize output paths

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Xe 2022-12-09 00:06:15 -05:00
parent 0b6f2c800a
commit 89969955be

View file

@ -10,6 +10,7 @@
src,
lockfile,
output ? "bundled.js",
outPath ? "dist",
entrypoint,
importMap ? null,
additionalDenoFlags ? "",
@ -37,7 +38,7 @@ in
"${output}"
'';
installPhase = ''
mkdir -p $out/dist
install -t $out/dist "${output}"
mkdir -p $out/${outPath}
install -t $out/${outPath} "${output}"
'';
}