summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--flake.nix12
1 files changed, 10 insertions, 2 deletions
diff --git a/flake.nix b/flake.nix
index e0c9c7e..14b16fb 100644
--- a/flake.nix
+++ b/flake.nix
@@ -2,7 +2,9 @@
# WARNING this is very much still experimental.
description = "A collection of darwin modules";
- outputs = { self, nixpkgs }: {
+ outputs = { self, nixpkgs }: let
+ forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" ];
+ in {
lib = {
evalConfig = import ./eval-config.nix;
@@ -44,7 +46,7 @@
description = "nix flake init -t nix-darwin";
};
- checks = nixpkgs.lib.genAttrs ["aarch64-darwin" "x86_64-darwin"] (system: let
+ checks = forAllSystems (system: let
simple = self.lib.darwinSystem {
modules = [
self.darwinModules.simple
@@ -59,5 +61,11 @@
manualHTML
manpages;
});
+
+ packages = forAllSystems (system: let
+ pkgs = nixpkgs.legacyPackages.${system};
+ in {
+ darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { nix-darwin = self; };
+ });
};
}