-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathflake.nix
36 lines (33 loc) · 892 Bytes
/
flake.nix
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
{
description = "A Nix-flake-based dev env for Precis";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
};
outputs = { self , nixpkgs ,... }: let
# system should match the system you are running on
system = "x86_64-linux";
in {
devShells."${system}".default = let
pkgs = import nixpkgs {
inherit system;
};
in pkgs.mkShell {
name = "precis";
# create an environment with nodejs_18, pnpm, and yarn
packages = with pkgs; [
python311Full
python311Packages.pip
nodejs_22
pre-commit
gnumake
playwright
playwright-driver.browsers
go_1_21
ruff
];
PLAYWRIGHT_NODEJS_PATH = "${pkgs.nodejs_22}/bin/node";
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;
};
};
}