mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +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
|
||
|
'';
|
||
|
})
|