Archived
updated default.nix shell for nextjs
This commit is contained in:
+13
-11
@@ -1,15 +1,17 @@
|
||||
{ pkgs ? import <nixpkgs> {} }:
|
||||
|
||||
let
|
||||
nodePackages = pkgs.nodePackages;
|
||||
pkgs = import <nixpkgs> {};
|
||||
in
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
nodePackages.nodejs
|
||||
nodePackages.yarn
|
||||
];
|
||||
|
||||
shellHook = ''
|
||||
echo "Welcome to the bakery-template development environment!"
|
||||
'';
|
||||
pkgs.mkShell {
|
||||
buildInputs = [
|
||||
pkgs.nodejs
|
||||
pkgs.yarn
|
||||
];
|
||||
|
||||
# Install Next.js via yarn in the shell
|
||||
shellHook = ''
|
||||
if ! [ -d "node_modules" ]; then
|
||||
yarn add next react react-dom
|
||||
fi
|
||||
'';
|
||||
}
|
||||
Reference in New Issue
Block a user