stylix: drop unnecessary use of self in meta.nix

This commit is contained in:
Matt Sturgeon 2025-05-28 18:42:59 +01:00
parent 23e3013b62
commit 03748a36d5
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 4 additions and 6 deletions

View file

@ -53,7 +53,7 @@ let
};
};
metadata = callPackage ../stylix/meta.nix { inherit inputs; };
metadata = callPackage ../stylix/meta.nix { };
# We construct an index of all Stylix options, using the following format:
#

View file

@ -1,8 +1,6 @@
{
pkgs,
lib,
inputs,
...
}:
builtins.mapAttrs
(
@ -21,9 +19,9 @@ builtins.mapAttrs
)
(
lib.concatMapAttrs (
path: kind:
target: kind:
lib.optionalAttrs (kind == "directory") {
${path} = import "${inputs.self}/modules/${path}/meta.nix";
${target} = import ../modules/${target}/meta.nix;
}
) (builtins.readDir "${inputs.self}/modules")
) (builtins.readDir ../modules)
)