-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
36 lines (30 loc) · 728 Bytes
/
shell.nix
File metadata and controls
36 lines (30 loc) · 728 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
28
29
30
31
32
33
34
35
36
flake:
{ pkgs, ... }:
let
# Hostplatform system
system = pkgs.hostPlatform.system;
# Production package
base = flake.packages.${system}.default;
in
pkgs.mkShell {
inputsFrom = [base];
packages = with pkgs; [
# Nix
nixd
statix
deadnix
alejandra
];
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'
printf "Copying necessary fonts\n"
cp "${
pkgs.google-fonts.override { fonts = [ "Inter" ]; }
}/share/fonts/truetype/Inter[opsz,wght].ttf" ./src/app/Inter.ttf
'';
}