-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathflake.nix
60 lines (57 loc) · 1.59 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
devshell.url = "github:numtide/devshell";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.devshell.flakeModule
];
systems = [ "x86_64-linux" "x86_64-darwin" "aarch64-linux" "aarch64-darwin" ];
perSystem = { config, self', inputs', pkgs, lib, system, ... }:
let
nodejs = pkgs.nodejs_23;
python = pkgs.python3;
in
{
devshells.default = {
env = [
{
name = "BROWSER_PATH";
value = pkgs.playwright-driver.browsers;
}
{
name = "PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS";
value = "true";
}
];
commands = [
{
help = "download repos";
name = "download";
command = "./scripts/download.mjs";
}
{
help = "run frontend";
name = "run";
command = "cd web/; yarn run dev";
}
];
packages = [
(python.withPackages (p: with p; [
requests
ruamel-yaml
pydantic
]))
pkgs.sqlite
pkgs.curl
pkgs.playwright-driver
pkgs.nodePackages.zx
pkgs.nodePackages.npm
pkgs.nodePackages.yarn
];
};
};
};
}