-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
32 lines (28 loc) · 1002 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 = "Auxolotl system-agnostic libraries";
inputs = {
# TODO: this is required to do the tests with different nix versions,
# and generate documentation
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
};
outputs = { self, nixpkgs, ... }:
let
lib = import ./nix;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
pkgsForSystem = system: import nixpkgs { inherit system; };
in {
lib = import ./nix;
devShells = forAllSystems (system: {
default = (pkgsForSystem system).callPackage ./shell.nix { };
});
packages = forAllSystems
(system: { docs = (pkgsForSystem system).callPackage ./doc { }; });
checks = forAllSystems (system:
let pkgs = pkgsForSystem system;
in {
auxlib = import ./tests/auxlib { inherit pkgs; };
stdlib = import ./tests/stdlib { inherit pkgs; };
formatting = pkgs.callPackage ./tests/formatting.nix { };
});
};
}