shell.nix
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
git
nodejs
];
shellHook = ''
echo "Nix shell ready"
'';
}
Activate the shell
$ nix-shell
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
packages = with pkgs; [
git
nodejs
];
shellHook = ''
echo "Nix shell ready"
'';
}
$ nix-shell
Share your thoughts