Archived
18 lines
277 B
Nix
18 lines
277 B
Nix
let
|
|
pkgs = import <nixpkgs> {};
|
|
in
|
|
|
|
pkgs.mkShell {
|
|
buildInputs = [
|
|
pkgs.nodejs
|
|
pkgs.yarn
|
|
pkgs.firebase-tools
|
|
];
|
|
|
|
# Install Next.js via yarn in the shell
|
|
shellHook = ''
|
|
if ! [ -d "node_modules" ]; then
|
|
yarn add next react react-dom
|
|
fi
|
|
'';
|
|
} |