-
-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathshell.nix
More file actions
27 lines (21 loc) · 546 Bytes
/
shell.nix
File metadata and controls
27 lines (21 loc) · 546 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{pkgs ? import <nixpkgs> {}}:
pkgs.stdenv.mkDerivation {
name = "devops-journey-shell";
buildInputs = with pkgs; [
# Package managers
pnpm
yarn
# Runtime engines
nodejs_22
# Nextjs dependencies
vips
];
shellHook = ''
printf "Installing pnpm dependencies\n"
pnpm install
printf "Adding node_modules to PATH\n"
export PATH="$PWD/node_modules/.bin/:$PATH"
printf "Adding necessary aliases\n"
alias scripts='jq ".scripts" package.json'
'';
}