pkgs: add writeDeno{,Bin}
This commit is contained in:
@@ -235,6 +235,20 @@ pkgs: oldpkgs: {
|
||||
assert types.filename.check name;
|
||||
pkgs.writeDash "/bin/${name}";
|
||||
|
||||
writeDeno = name: text: let
|
||||
script = builtins.toFile "${name}.deno" text;
|
||||
in
|
||||
pkgs.writeDash name ''
|
||||
exec ${pkgs.deno}/bin/deno run \
|
||||
--allow-all \
|
||||
--quiet \
|
||||
${script} "$@"
|
||||
'';
|
||||
|
||||
writeDenoBin = name:
|
||||
assert types.filename.check name;
|
||||
pkgs.writeDeno "/bin/${name}";
|
||||
|
||||
writeEximConfig = name: text: pkgs.runCommand name {
|
||||
inherit text;
|
||||
passAsFile = [ "text" ];
|
||||
|
||||
Reference in New Issue
Block a user