mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
095ba5502c
Change `uninstaller` to `darwin-uninstaller` to match flake attribute
23 lines
578 B
Nix
23 lines
578 B
Nix
{ nixpkgs ? <nixpkgs>
|
|
, configuration ? <darwin-config>
|
|
, system ? builtins.currentSystem
|
|
, pkgs ? import nixpkgs { inherit system; }
|
|
, lib ? pkgs.lib
|
|
}:
|
|
|
|
let
|
|
eval = import ./eval-config.nix {
|
|
inherit lib;
|
|
modules = [
|
|
configuration
|
|
{ nixpkgs.source = lib.mkDefault nixpkgs; }
|
|
] ++ lib.optional (system != null) {
|
|
nixpkgs.system = lib.mkDefault system;
|
|
};
|
|
};
|
|
in
|
|
eval // {
|
|
darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { };
|
|
|
|
inherit (pkgs.callPackage ./pkgs/nix-tools { }) darwin-option darwin-rebuild darwin-version;
|
|
}
|