-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathshell.nix
More file actions
33 lines (33 loc) · 1.01 KB
/
shell.nix
File metadata and controls
33 lines (33 loc) · 1.01 KB
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
let
pkgs = import ./nix/pinned.nix {
overlays = [(import ./nix/overlays.nix)];
};
inherit (pkgs.stdenv.hostPlatform) system;
throwSystem = throw "Unsupported system: ${system}";
suffix =
{
x86_64-linux = "linux64";
aarch64-linux = "linux-arm64";
x86_64-darwin = "mac64";
aarch64-darwin = "mac-arm64";
}.${system} or throwSystem;
in
with pkgs;
mkShell {
nativeBuildInputs = [
playwright-driver.browsers
];
buildInputs = [
babashka
clojure
cljfmt
clj-kondo
neil
];
PLAYWRIGHT_BROWSERS_PATH = "${pkgs.playwright-driver.browsers}";
PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH = "${pkgs.playwright-driver.browsers}/chromium_headless_shell-${pkgs.playwright-driver.browsersJSON.chromium-headless-shell.revision}/chrome-headless-shell-${suffix}/chrome-headless-shell";
PLAYWRIGHT_SKIP_VALIDATE_HOST_REQUIREMENTS = true;
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = 1;
PLAYWRIGHT_HOST_PLATFORM_OVERRIDE = "ubuntu-24.04";
PLAYWRIGHT_NODEJS_PATH="${pkgs.nodejs}/bin/node";
}