Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
28 lines
570 B
Nix
28 lines
570 B
Nix
{ mkTarget, lib, ... }:
|
|
mkTarget {
|
|
name = "gtksourceview";
|
|
humanName = "GTKSourceView";
|
|
|
|
config =
|
|
{ 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"
|
|
]
|
|
);
|
|
};
|
|
}
|