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>
28 lines
578 B
Nix
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"
|
|
]
|
|
);
|
|
};
|
|
}
|