Add node2nix

This commit is contained in:
Luc Perkins 2022-08-02 12:50:59 +02:00
parent cfa91d2233
commit 9aa38fbcf7
No known key found for this signature in database
GPG key ID: 4F102D0C16E232F2
2 changed files with 4 additions and 3 deletions

View file

@ -9,7 +9,7 @@
let
pkgs = import nixpkgs { inherit system; };
inherit (pkgs) mkShell;
inherit (pkgs) mkShell node2nix;
nodejs = pkgs.nodejs-18_x;
pnpm = pkgs.nodePackages.pnpm;
@ -17,7 +17,7 @@
in {
devShells = {
default = mkShell {
buildInputs = [ nodejs pnpm yarn ];
buildInputs = [ node2nix nodejs pnpm yarn ];
shellHook = ''
echo "node `${nodejs}/bin/node --version`"