-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathflake.nix
28 lines (27 loc) · 900 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = nixpkgs.legacyPackages.${system};
beamPackages = with pkgs.beam_minimal; packagesWith interpreters.erlangR25;
in
rec {
packages = flake-utils.lib.flattenTree rec {
erlang-test-runner =
beamPackages.callPackage ./nix/test_runner.nix { inherit self; };
};
defaultPackage = packages.erlang-test-runner;
devShells.default = pkgs.mkShell {
packages = builtins.attrValues {
inherit (beamPackages) erlang rebar3;
inherit (pkgs) alejandra nil;
};
};
}
);
}