Other function
This commit is contained in:
parent
02ccf8f35a
commit
bfaf19c87d
2 changed files with 14 additions and 1 deletions
12
nightmare/writeNuShellScript.nix
Normal file
12
nightmare/writeNuShellScript.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ nushell, writeTextFile, ... }:
|
||||
name: text:
|
||||
let writeNuShellScript =
|
||||
writeTextFile {
|
||||
inherit name;
|
||||
executable = true;
|
||||
text = ''
|
||||
#!${nushell}/bin/nu
|
||||
${text}
|
||||
'';
|
||||
};
|
||||
in writeNuShellScript
|
Loading…
Add table
Add a link
Reference in a new issue