diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2023-06-09 23:58:49 +1000 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2023-07-11 18:59:05 +1000 |
| commit | aeaafcc88a65c6ca18c1b699afbb53e6ff0b5ae2 (patch) | |
| tree | 7f737719d09330f136bd9cd348943b26663573d9 /flake.nix | |
| parent | 83620edf499ba8033ad43d4f5edc50fdf3eeee5f (diff) | |
flake: add `packages.darwin-uninstaller`
Diffstat (limited to 'flake.nix')
| -rw-r--r-- | flake.nix | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -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; }; + }); }; } |
