mirror of
https://github.com/gburd/nix-config.git
synced 2024-09-09 11:26:12 +00:00
17 lines
336 B
Nix
17 lines
336 B
Nix
![]() |
{ callPackage, writeShellScriptBin }:
|
||
|
|
||
|
let
|
||
|
mainPkg = callPackage ./default.nix { };
|
||
|
npxAlias = name: writeShellScriptBin name "npx ${name} \"$@\"";
|
||
|
in
|
||
|
mainPkg.overrideAttrs (oa: {
|
||
|
nativeBuildInputs = [
|
||
|
(npxAlias "tsc")
|
||
|
(npxAlias "tsserver")
|
||
|
] ++ (oa.nativeBuildInputs or [ ]);
|
||
|
|
||
|
shellHook = ''
|
||
|
npm install
|
||
|
'';
|
||
|
})
|