-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
27 lines (24 loc) · 823 Bytes
/
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
{
description = "A basic flake to run an Elixir Project";
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
inherit (pkgs.lib) optional optionals;
pkgs = import nixpkgs { inherit system; };
inputs = with pkgs;
[ elixir_1_15 glibcLocales ]
++ optional stdenv.isLinux [ inotify-tools ]
++ optional stdenv.isDarwin terminal-notifier
++ optionals stdenv.isDarwin
(with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);
in with pkgs; {
devShells.default = mkShell {
name = "cronos";
packages = inputs;
};
});
}