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:
parent
aeaafcc88a
commit
f70f90c422
3 changed files with 22 additions and 2 deletions
11
flake.nix
11
flake.nix
|
@ -64,7 +64,18 @@
|
|||
|
||||
packages = forAllSystems (system: let
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
darwin = self.lib.darwinSystem {
|
||||
inherit system;
|
||||
modules = [ ];
|
||||
};
|
||||
|
||||
nix-tools = pkgs.callPackage ./pkgs/nix-tools { inherit darwin; };
|
||||
in {
|
||||
default = self.packages.${system}.darwin-rebuild;
|
||||
|
||||
inherit (nix-tools) darwin-rebuild darwin-option;
|
||||
|
||||
darwin-uninstaller = pkgs.callPackage ./pkgs/darwin-uninstaller { nix-darwin = self; };
|
||||
});
|
||||
};
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
inherit (pkgs) stdenv;
|
||||
|
||||
|
@ -39,5 +37,9 @@ in
|
|||
darwin-rebuild
|
||||
];
|
||||
|
||||
system.build = {
|
||||
inherit darwin-option darwin-rebuild;
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
|
7
pkgs/nix-tools/default.nix
Normal file
7
pkgs/nix-tools/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ darwin }:
|
||||
|
||||
let
|
||||
inherit (darwin) config;
|
||||
in {
|
||||
inherit (config.system.build) darwin-option darwin-rebuild;
|
||||
}
|
Loading…
Reference in a new issue