nixos-configs/scopedPackages/mpv-scripts/modernz/default.nix

40 lines
821 B
Nix
Raw Normal View History

{
2025-02-18 15:19:08 -05:00
# nix build inputs
lib,
buildLua,
mkVersion,
2025-02-18 15:19:08 -05:00
makeFontsConf,
2025-01-31 01:01:14 -05:00
modernz-src,
...
}:
buildLua (finalAttrs: {
2025-01-31 01:01:14 -05:00
pname = "modernz";
version = mkVersion modernz-src;
2025-01-31 01:01:14 -05:00
src = modernz-src;
# Make font available to script
postInstall = ''
mkdir -p $out/share/fonts
2025-01-31 01:01:14 -05:00
cp -r ./fluent-system-icons.ttf $out/share/fonts
'';
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"
(toString (makeFontsConf {
fontDirectories = ["${finalAttrs.finalPackage}/share/fonts"];
}))
];
2025-02-18 15:19:08 -05:00
meta = {
license = lib.licenses.lgpl21;
homepage = "https://github.com/Samillion/ModernZ";
description = ''
A sleek and modern OSC for mpv designed to enhance functionality
by adding more features, all while preserving the core standards
of mpv's OSC.
'';
};
})