deno2.nix/nix/make-bundled-wrapper.nix
2022-09-10 04:06:41 +09:00

18 lines
252 B
Nix

{
pkgs,
deno,
deno2nix,
writeShellScriptBin,
...
}: {
pname,
bin ? pname,
output ? "bundled.js",
...
} @ args: let
bundled = deno2nix.mkBundled args;
in
writeShellScriptBin
bin
"${deno}/bin/deno run ${bundled}/dist/${output}"