Skip to content

Commit 90ee4c2

Browse files
committed
chore(nix): add flake
1 parent 043f341 commit 90ee4c2

2 files changed

Lines changed: 141 additions & 0 deletions

File tree

flake.lock

Lines changed: 102 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: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
description = "spitfire";
3+
4+
inputs = {
5+
beam-flakes.url = "github:shanesveller/nix-beam-flakes";
6+
beam-flakes.inputs.flake-parts.follows = "flake-parts";
7+
flake-parts.url = "github:hercules-ci/flake-parts";
8+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
9+
};
10+
11+
outputs = inputs @ {
12+
beam-flakes,
13+
flake-parts,
14+
...
15+
}:
16+
flake-parts.lib.mkFlake {inherit inputs;} {
17+
imports = [beam-flakes.flakeModule];
18+
19+
systems = ["aarch64-darwin" "x86_64-darwin" "x86_64-linux"];
20+
21+
perSystem = {
22+
config,
23+
pkgs,
24+
...
25+
}: {
26+
beamWorkspace = {
27+
enable = true;
28+
devShell.languageServers.elixir = false;
29+
devShell.languageServers.erlang = false;
30+
flakePackages = true;
31+
versions = {
32+
elixir = "1.16.1";
33+
erlang = "26.2.2";
34+
};
35+
};
36+
};
37+
};
38+
}
39+

0 commit comments

Comments
 (0)