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-{option,rebuild}

This commit is contained in:
Michael Hoang 2023-06-10 00:23:02 +10:00
parent aeaafcc88a
commit f70f90c422
3 changed files with 22 additions and 2 deletions

View file

@ -64,7 +64,18 @@
packages = forAllSystems (system: let packages = forAllSystems (system: let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.${system};
darwin = self.lib.darwinSystem {
inherit system;
modules = [ ];
};
nix-tools = pkgs.callPackage ./pkgs/nix-tools { inherit darwin; };
in { in {
default = self.packages.${system}.darwin-rebuild;
inherit (nix-tools) darwin-rebuild darwin-option;
darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { nix-darwin = self; }; darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { nix-darwin = self; };
}); });
}; };

View file

@ -1,7 +1,5 @@
{ config, pkgs, lib, ... }: { config, pkgs, lib, ... }:
with lib;
let let
inherit (pkgs) stdenv; inherit (pkgs) stdenv;
@ -39,5 +37,9 @@ in
darwin-rebuild darwin-rebuild
]; ];
system.build = {
inherit darwin-option darwin-rebuild;
};
}; };
} }

View file

@ -0,0 +1,7 @@
{ darwin }:
let
inherit (darwin) config;
in {
inherit (config.system.build) darwin-option darwin-rebuild;
}