summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pkgs/default.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/default.nix b/pkgs/default.nix
index d6127a1..8c62f1b 100644
--- a/pkgs/default.nix
+++ b/pkgs/default.nix
@@ -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" ];