-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
34 lines (31 loc) · 1.13 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
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
with pkgs; {
devShells.default = mkShell {
buildInputs = [
# API Deps ------------------------------------
(elixir_1_17.override { erlang = erlang_27; }) erlang_27
# Web Deps ------------------------------------
nodePackages.prettier nodejs_20
]
++ lib.optionals stdenv.isLinux ([ libnotify inotify-tools ])
++ lib.optionals stdenv.isDarwin ([ terminal-notifier
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.CoreServices
]);
env = {
ERL_AFLAGS = "-kernel shell_history enabled";
};
};
}
);
}