mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 00:26:24 +00:00
16 lines
336 B
Nix
16 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
|
|
'';
|
|
})
|