mirror of
https://github.com/hercules-ci/flake-parts.git
synced 2025-03-28 02:37:12 +00:00
Remove darwinModules
It should be added to the nix-darwin project instead.
This commit is contained in:
parent
c742f6f25a
commit
85518a2916
4 changed files with 8 additions and 30 deletions
|
@ -1,4 +1,12 @@
|
|||
|
||||
# 2022-11-27
|
||||
|
||||
- The `darwinModules` option has been removed. This was added in the early days
|
||||
without full consideration. The removal will have no effect on most flakes
|
||||
considering that the [`flake` option](https://flake.parts/options/flake-parts.html#opt-flake)
|
||||
allows any attribute to be set. This attribute and related attributes should
|
||||
be added to the nix-darwin project instead.
|
||||
|
||||
# 2022-10-11
|
||||
|
||||
- The `nixpkgs` input has been renamed to `nixpkgs-lib` to signify that the
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
imports = [
|
||||
./modules/apps.nix
|
||||
./modules/checks.nix
|
||||
./modules/darwinModules.nix
|
||||
./modules/devShells.nix
|
||||
./modules/flake.nix
|
||||
./modules/formatter.nix
|
||||
|
|
|
@ -31,7 +31,6 @@ rec {
|
|||
assert empty == {
|
||||
apps = { };
|
||||
checks = { };
|
||||
darwinModules = { };
|
||||
devShells = { };
|
||||
formatter = { };
|
||||
legacyPackages = { };
|
||||
|
@ -44,7 +43,6 @@ rec {
|
|||
assert example1 == {
|
||||
apps = { a = { }; b = { }; };
|
||||
checks = { a = { }; b = { }; };
|
||||
darwinModules = { };
|
||||
devShells = { a = { }; b = { }; };
|
||||
formatter = { };
|
||||
legacyPackages = { a = { }; b = { }; };
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
{ config, self, lib, flake-parts-lib, ... }:
|
||||
let
|
||||
inherit (lib)
|
||||
filterAttrs
|
||||
mapAttrs
|
||||
mkOption
|
||||
optionalAttrs
|
||||
types
|
||||
;
|
||||
inherit (flake-parts-lib)
|
||||
mkSubmoduleOptions
|
||||
;
|
||||
in
|
||||
{
|
||||
options = {
|
||||
flake = mkSubmoduleOptions {
|
||||
darwinModules = mkOption {
|
||||
type = types.lazyAttrsOf types.unspecified;
|
||||
default = { };
|
||||
apply = mapAttrs (k: v: { _file = "${toString self.outPath}/flake.nix#darwinModules.${k}"; imports = [ v ]; });
|
||||
description = ''
|
||||
[nix-darwin](https://daiderd.com/nix-darwin/) modules.
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Reference in a new issue