Skip to content

Commit 79481d0

Browse files
committed
chore: add flake
1 parent 4e87275 commit 79481d0

2 files changed

Lines changed: 143 additions & 0 deletions

File tree

flake.lock

Lines changed: 99 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
description = "Wallaby";
3+
4+
inputs = {
5+
beam-flakes = {
6+
url = "github:mhanberg/nix-beam-flakes";
7+
inputs.flake-parts.follows = "flake-parts";
8+
inputs.nixpkgs.follows = "nixpkgs";
9+
};
10+
flake-parts.url = "github:hercules-ci/flake-parts";
11+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
12+
};
13+
14+
outputs = inputs @ {
15+
beam-flakes,
16+
flake-parts,
17+
...
18+
}:
19+
flake-parts.lib.mkFlake {inherit inputs;} {
20+
imports = [beam-flakes.flakeModule];
21+
22+
systems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
23+
24+
perSystem = {
25+
pkgs,
26+
system,
27+
...
28+
}: {
29+
beamWorkspace = {
30+
enable = true;
31+
devShell = {
32+
packages = with pkgs; [
33+
chromedriver
34+
selenium-server-standalone
35+
];
36+
languageServers.elixir = false;
37+
languageServers.erlang = false;
38+
};
39+
40+
versions = {fromToolVersions = ./.tool-versions;};
41+
};
42+
};
43+
};
44+
}

0 commit comments

Comments
 (0)