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:
parent
83620edf49
commit
aeaafcc88a
1 changed files with 10 additions and 2 deletions
12
flake.nix
12
flake.nix
|
@ -2,7 +2,9 @@
|
||||||
# WARNING this is very much still experimental.
|
# WARNING this is very much still experimental.
|
||||||
description = "A collection of darwin modules";
|
description = "A collection of darwin modules";
|
||||||
|
|
||||||
outputs = { self, nixpkgs }: {
|
outputs = { self, nixpkgs }: let
|
||||||
|
forAllSystems = nixpkgs.lib.genAttrs [ "aarch64-darwin" "x86_64-darwin" ];
|
||||||
|
in {
|
||||||
lib = {
|
lib = {
|
||||||
evalConfig = import ./eval-config.nix;
|
evalConfig = import ./eval-config.nix;
|
||||||
|
|
||||||
|
@ -44,7 +46,7 @@
|
||||||
description = "nix flake init -t nix-darwin";
|
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 {
|
simple = self.lib.darwinSystem {
|
||||||
modules = [
|
modules = [
|
||||||
self.darwinModules.simple
|
self.darwinModules.simple
|
||||||
|
@ -59,5 +61,11 @@
|
||||||
manualHTML
|
manualHTML
|
||||||
manpages;
|
manpages;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
packages = forAllSystems (system: let
|
||||||
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
|
in {
|
||||||
|
darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { nix-darwin = self; };
|
||||||
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue