summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-07 23:23:46 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-09 19:46:07 +1100
commita82d72d25f67dff02afbd6fb72cd16e2ec040a68 (patch)
tree0f970cc9f730f6343ba2b6fcdfd7698a40ac03d3
parent3224bb2f7c998448e4eb9b5df93195af2e268a30 (diff)
flake: expose docs on Linux as well
-rw-r--r--flake.nix13
1 files changed, 7 insertions, 6 deletions
diff --git a/flake.nix b/flake.nix
index 48dc312..fb5545b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,8 @@
description = "A collection of darwin modules";
outputs = { self, nixpkgs }: let
- forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" ];
+ forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" "aarch64-linux" "x86_64-linux" ];
+ forDarwinSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" ];
jobs = forAllSystems (system: import ./release.nix {
inherit nixpkgs system;
@@ -58,9 +59,11 @@
description = "nix flake init -t nix-darwin";
};
- checks = forAllSystems (system: jobs.${system}.tests // jobs.${system}.examples);
+ checks = forDarwinSystems (system: jobs.${system}.tests // jobs.${system}.examples);
- packages = forAllSystems (system: let
+ packages = forAllSystems (system: {
+ inherit (jobs.${system}.docs) manualHTML manpages optionsJSON;
+ } // (nixpkgs.lib.optionalAttrs (nixpkgs.lib.hasSuffix "darwin" system) (let
pkgs = import nixpkgs {
inherit system;
overlays = [ self.overlays.default ];
@@ -69,8 +72,6 @@
default = self.packages.${system}.darwin-rebuild;
inherit (pkgs) darwin-option darwin-rebuild darwin-version darwin-uninstaller;
-
- inherit (jobs.${system}.docs) manualHTML manpages optionsJSON;
- });
+ })));
};
}