-
Notifications
You must be signed in to change notification settings - Fork 18
/
flake.nix
32 lines (29 loc) · 917 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
28
29
30
31
32
{
description = "Holidefs: Definition-based national holidays in Elixir";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
elixirOverlay = final: prev: {
elixir-ls = (prev.elixir-ls.override {
elixir = prev.beam.packages.erlangR24.elixir_1_12;
});
};
pkgs = import nixpkgs { inherit system; overlays = [ elixirOverlay ]; };
in {
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
nil
beam.packages.erlangR24.elixir_1_12
elixir_ls
];
};
ci = pkgs.mkShell {
buildInputs = with pkgs; [ beam.packages.erlangR24.elixir_1_12 ];
};
};
}
);
}