11.stylix/modules/gtksourceview/hm.nix
bricked 05752c77ac
gtksourceview: init module (#958)
Link: https://github.com/nix-community/stylix/pull/958

Reviewed-by: Daniel Thwaites <danth@danth.me>
Reviewed-by: awwpotato <awwpotato@voidq.com>
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
2025-07-12 16:50:03 -07:00

28 lines
578 B
Nix

{ mkTarget, lib, ... }:
mkTarget {
name = "gtksourceview";
humanName = "GTKSourceView";
configElements =
{ colors, ... }:
{
xdg.dataFile = builtins.listToAttrs (
map
(
version:
lib.nameValuePair "gtksourceview-${version}/styles/stylix.xml" {
source = colors {
template = ./template.xml.mustache;
extension = ".xml";
};
}
)
[
"2.0"
"3.0"
"4"
"5"
]
);
};
}