diff options
author | Tristan Ross <tristan.ross@midstall.com> | 2024-06-06 21:18:15 -0700 |
---|---|---|
committer | Tristan Ross <tristan.ross@midstall.com> | 2024-06-06 21:19:05 -0700 |
commit | 8233812d546ab7eb23e830d7c516f067893cad88 (patch) | |
tree | 3d9ccec090546d9708c001291e46c933ba1da483 /flake.nix | |
parent | 013e398b0fbd51ef36930a91284156241300d38c (diff) |
flake.nix: make pure
Diffstat (limited to 'flake.nix')
-rw-r--r-- | flake.nix | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix index d920d5d0dddab..90d249647896d 100644 --- a/flake.nix +++ b/flake.nix @@ -5,14 +5,15 @@ outputs = { self }: let - jobs = import ./pkgs/top-level/release.nix { - nixpkgs = self; - }; - libVersionInfoOverlay = import ./lib/flake-version-info.nix self; lib = (import ./lib).extend libVersionInfoOverlay; forAllSystems = lib.genAttrs lib.systems.flakeExposed; + + jobs = forAllSystems (system: import ./pkgs/top-level/release.nix { + nixpkgs = self; + inherit system; + }); in { lib = lib.extend (final: prev: { @@ -44,11 +45,12 @@ }); checks.x86_64-linux = { - tarball = jobs.tarball; + tarball = jobs.x86_64-linux.tarball; # Test that ensures that the nixosSystem function can accept a lib argument # Note: prefer not to extend or modify `lib`, especially if you want to share reusable modules # alternatives include: `import` a file, or put a custom library in an option or in `_module.args.<libname>` nixosSystemAcceptsLib = (self.lib.nixosSystem { + pkgs = self.legacyPackages.x86_64-linux; lib = self.lib.extend (final: prev: { ifThisFunctionIsMissingTheTestFails = final.id; }); @@ -67,7 +69,7 @@ }; htmlDocs = { - nixpkgsManual = jobs.manual; + nixpkgsManual = jobs.x86_64-linux.manual; nixosManual = (import ./nixos/release-small.nix { nixpkgs = self; }).nixos.manual.x86_64-linux; |