-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathflake.nix
More file actions
77 lines (69 loc) · 1.82 KB
/
Copy pathflake.nix
File metadata and controls
77 lines (69 loc) · 1.82 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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{
description = "ACPex flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
nixpkgs-unstable.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
nixpkgs,
nixpkgs-unstable,
flake-utils,
...
}:
flake-utils.lib.eachDefaultSystem (
system:
let
unstable-packages = final: _prev: {
unstable = import nixpkgs-unstable {
inherit system;
config.allowUnfree = true;
};
};
pkgs = import nixpkgs {
inherit system;
overlays = [
unstable-packages
];
config.allowUnfree = true;
};
isDarwin = builtins.match ".*-darwin" pkgs.stdenv.hostPlatform.system != null;
claude-code-acp = pkgs.callPackage ./nix/claude-code-acp.nix { };
# Pin Elixir 1.20 on OTP 28. The default `elixir` attr still tracks
# 1.18, so select the explicit beam package for the toolchain.
beam = pkgs.unstable.beam.packages.erlang_28;
elixir = beam.elixir_1_20;
erlang = pkgs.unstable.erlang_28;
shell = pkgs.mkShell {
buildInputs =
with pkgs;
[
elixir
beam.elixir-ls
erlang
unstable.livebook
rebar3
nodePackages.prettier
ast-grep
# for e2e tests
unstable.claude-code
claude-code-acp
]
++ (
if isDarwin then
[
]
else
[ ]
);
shellHook = ''
echo "ACPex dev environment"
'';
};
in
{
devShells.default = shell;
}
);
}