flake: export lib #4

Merged
getchoo merged 1 commit from export-lib into main 2024-05-03 22:52:08 +00:00
Showing only changes of commit 8be9d3c6e1 - Show all commits

View file

@ -3,26 +3,24 @@
nixpkgs.url = "github:auxolotl/nixpkgs/nixos-unstable";
};
outputs = { self, nixpkgs, ... }:
outputs =
{ self, nixpkgs, ... }:
let
lib = import ./lib;
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
forAllSystems = self.lib.genAttrs self.lib.systems.flakeExposed;
in
{
nixPackages = forAllSystems (system:
nixpkgs.legacyPackages.${system}
);
lib = import ./lib;
nixPackages = forAllSystems (system: nixpkgs.legacyPackages.${system});
# 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}; };
})
);
tests = forAllSystems (system: {
systems = import ./lib/tests/systems.nix;
release = import ./lib/tests/release.nix { pkgs = self.nixPackages.${system}; };
});
};
}