mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
pkgs.writers add snu, lua and ruby
This commit is contained in:
parent
0b8f8e0cd9
commit
05ad04bdd3
@ -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 ? [],
|
||||
|
Loading…
Reference in New Issue
Block a user