-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
31 lines (27 loc) · 883 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
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
nixfmt.url = "github:serokell/nixfmt";
};
outputs = inputs@{ self, nixpkgs, systems, nixfmt, ... }:
let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem = system;
overlays = [ self.overlays.azul-jdks ];
});
in {
overlays = import ./nix/overlays.nix;
packages =
eachSystem (system: import ./nix/packages.nix pkgsFor.${system});
devShells = eachSystem (system:
let pkgs = pkgsFor.${system};
in {
default = pkgs.mkShell { nativeBuildInputs = [ pkgs.zulu17 ]; };
});
formatter = eachSystem (system: nixfmt.packages.${system}.default);
};
}