New nu shell function
This commit is contained in:
parent
bfaf19c87d
commit
45d5a4c8e9
|
@ -1,4 +1,5 @@
|
|||
{ pkgs, ... }: {
|
||||
getKittyColorscheme = pkgs.callPackage ./nightmare/getKittyColorscheme.nix {};
|
||||
writeNuShellScript = pkgs.callPackage ./nightmare/writeNuShellScript.nix {};
|
||||
writeNuShellScriptBin = pkgs.callPackage ./nightmare/writeNuShellScriptBin.nix {};
|
||||
}
|
||||
|
|
14
nightmare/writeNuShellScriptBin.nix
Normal file
14
nightmare/writeNuShellScriptBin.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ nushell, writeTextFile, ... }:
|
||||
name: text:
|
||||
let writeNuShellScriptBin =
|
||||
writeTextFile {
|
||||
inherit name;
|
||||
executable = true;
|
||||
destination = "/bin/${name}";
|
||||
text = ''
|
||||
#!${nushell}/bin/nu
|
||||
${text}
|
||||
'';
|
||||
meta.mainProgram = name;
|
||||
};
|
||||
in writeNuShellScriptBin
|
Loading…
Reference in a new issue