pkgs.writers add snu, lua and ruby

This commit is contained in:
Tulili
2024-01-30 06:48:15 +01:00
committed by lassulus
parent 0b8f8e0cd9
commit 05ad04bdd3
+40
View File
@@ -185,6 +185,46 @@ rec {
writeHaskellBin = name:
writeHaskell "/bin/${name}";
# Like writeScript but the first line is a shebang to nu
#
# Example:
# writeNu "example" ''
# echo hello world
# ''
writeNu = makeScriptWriter {
interpreter = "${pkgs.nushell}/bin/nu --no-config-file";
};
# Like writeScriptBin but the first line is a shebang to nu
writeNuBin = name:
writeNu "/bin/${name}";
# Like writeScript but the first line is a shebang to ruby
#
# Example:
# writeRuby "example" ''
# puts "hello world"
# ''
writeRuby = makeScriptWriter {
interpreter = "${pkgs.ruby}/bin/ruby";
};
writeRubyBin = name:
writeRuby "/bin/${name}";
# Like writeScript but the first line is a shebang to lua
#
# Example:
# writeLua "example" ''
# print("hello world")
# ''
writeLua = makeScriptWriter {
interpreter = "${pkgs.lua}/bin/lua";
};
writeLuaBin = name:
writeLua "/bin/${name}";
writeRust = name: {
rustc ? pkgs.rustc,
rustcArgs ? [],