From 89969955bee00b997710cd7f42a95b7de45db02c Mon Sep 17 00:00:00 2001 From: Xe Date: Fri, 9 Dec 2022 00:06:15 -0500 Subject: [PATCH] nix/make-bundled: parameterize output paths Signed-off-by: Xe --- nix/make-bundled.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/make-bundled.nix b/nix/make-bundled.nix index ce86004..001ece5 100644 --- a/nix/make-bundled.nix +++ b/nix/make-bundled.nix @@ -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}" ''; }