Link: https://github.com/nix-community/stylix/pull/1053 Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com> Reviewed-by: Daniel Thwaites <danth@danth.me> Reviewed-by: Matt Sturgeon <matt@sturgeon.me.uk> Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
17 lines
465 B
Nix
17 lines
465 B
Nix
{ lib, ... }:
|
|
{
|
|
perSystem =
|
|
{ pkgs, ... }:
|
|
{
|
|
packages.subsystem-maintainers = pkgs.writeText "subsystem-maintainers" (
|
|
lib.pipe ../../stylix/meta.nix [
|
|
(lib.flip pkgs.callPackage { })
|
|
(lib.mapAttrs (
|
|
_: meta: map (maintainer: maintainer.github) (meta.maintainers or [ ])
|
|
))
|
|
(lib.mapAttrs' (name: lib.nameValuePair "modules/${name}/"))
|
|
builtins.toJSON
|
|
]
|
|
);
|
|
};
|
|
}
|