added stuff
This commit is contained in:
parent
937f28770d
commit
236b8c2a6b
907 changed files with 70990 additions and 0 deletions
24
nyx/flake/templates/node/shell.nix
Normal file
24
nyx/flake/templates/node/shell.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
callPackage,
|
||||
writeShellScriptBin,
|
||||
eslint_d,
|
||||
prettierd,
|
||||
}: let
|
||||
mainPkg = callPackage ./default.nix {};
|
||||
mkNpxAlias = name: writeShellScriptBin name "npx ${name} \"$@\"";
|
||||
in
|
||||
mainPkg.overrideAttrs (oa: {
|
||||
nativeBuildInputs =
|
||||
[
|
||||
eslint_d
|
||||
prettierd
|
||||
(mkNpxAlias "tsc")
|
||||
(mkNpxAlias "tsserver")
|
||||
]
|
||||
++ (oa.nativeBuildInputs or []);
|
||||
|
||||
shellHook = ''
|
||||
eslint_d start # start eslint daemon
|
||||
eslint_d status # inform user about eslint daemon status
|
||||
'';
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue