piston/packages/node-javascript.nix

17 lines
259 B
Nix
Raw Normal View History

2021-10-05 03:57:40 +02:00
{pkgs, piston}:
piston.mkRuntime {
language = "javascript";
version = pkgs.nodejs.version;
runtime = "node";
aliases = [
"node-js"
"node-javascript"
"js"
];
run = ''
${pkgs.nodejs}/bin/node "$@"
'';
}