From 8be9d3c6e108e1de5d6b41ebd26f6731246f0a76 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 3 May 2024 16:17:59 -0400 Subject: [PATCH] flake: export lib --- flake.nix | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/flake.nix b/flake.nix index ebba839..f945564 100644 --- a/flake.nix +++ b/flake.nix @@ -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}; }; + }); }; }