2024-05-01 22:14:04 +00:00
|
|
|
{
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, ... }:
|
|
|
|
let
|
|
|
|
lib = import ./lib;
|
|
|
|
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
nixPackages = forAllSystems (system:
|
2024-05-01 22:31:03 +00:00
|
|
|
nixpkgs.legacyPackages.${system}
|
2024-05-01 22:14:04 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
# auxPackages = forAllSystems (system:
|
|
|
|
# (import ./. { inherit system; })
|
|
|
|
# );
|
|
|
|
|
|
|
|
# To test, run nix build .#tests.x86_64-linux.release
|
|
|
|
tests = forAllSystems (system:
|
|
|
|
({
|
|
|
|
systems = import ./lib/tests/systems.nix;
|
|
|
|
release = import ./lib/tests/release.nix { pkgs = self.nixPackages.${system}; };
|
|
|
|
})
|
|
|
|
);
|
|
|
|
};
|
|
|
|
}
|