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