deno2.nix/nix/make-bundled-wrapper.nix

18 lines
252 B
Nix
Raw Normal View History

{
pkgs,
deno,
deno2nix,
writeShellScriptBin,
...
}: {
pname,
bin ? pname,
output ? "bundled.js",
...
} @ args: let
bundled = deno2nix.mkBundled args;
2022-08-03 23:32:54 +00:00
in
writeShellScriptBin
bin
"${deno}/bin/deno run ${bundled}/dist/${output}"