1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

flake: add packages.darwin-uninstaller

This commit is contained in:
Michael Hoang 2023-06-09 23:58:49 +10:00
parent 83620edf49
commit aeaafcc88a

View file

@ -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; };
});
};
}