summaryrefslogtreecommitdiff
path: root/flake.nix
blob: cd24fe4681bed2da49e42bf851dbdec46c0adf72 (plain)
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  nixConfig = {
    # TODO: Move to lwjgl-cache.prismlauncher.org
    # Thank you Soopy
    extra-substituters = [ "https://s3.soopy.moe/lwjgl-nix" ];
    extra-trusted-public-keys = [
      "lwjgl-cache.prismlauncher.org:ucMitaRYTISlJtFr5ETPsDm8UCBAQ4+PTj2rBVlK8IQ="
    ];
  };

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

    flake-parts = {
      url = "github:hercules-ci/flake-parts";
      inputs.nixpkgs-lib.follows = "nixpkgs";
    };

    getchpkgs = {
      url = "github:getchoo/getchpkgs";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs =
    inputs:

    inputs.flake-parts.lib.mkFlake { inherit inputs; } {
      imports = [
        ./checks.nix
        ./dev-shells.nix
        ./lwjgl.nix
        ./module.nix
      ];

      systems = [
        "x86_64-linux"
        "aarch64-linux"
      ];

      perSystem =
        { pkgs, ... }:

        {
          formatter = pkgs.nixfmt-rfc-style;
        };
    };
}