Nix package definitions
1{
2 outputs =
3 { ... }:
4 let
5 systems = [
6 "x86_64-linux"
7 "aarch64-linux"
8 "x86_64-darwin"
9 "aarch64-darwin"
10 ];
11 forEachSystem =
12 f:
13 builtins.listToAttrs (
14 builtins.map (system: {
15 name = system;
16 value = f system;
17 }) systems
18 );
19 in
20 {
21 overlays.default = import ./overlay.nix { };
22 packages = forEachSystem (system: import ./default.nix { inherit system; });
23 };
24}