nixos-configs/scopedPackages/mpv-scripts/modernz/default.nix
matt1432 7b65696436
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(scoped): fix directory structure
2025-02-18 16:04:26 -05:00

39 lines
821 B
Nix

{
# nix build inputs
lib,
buildLua,
mkVersion,
makeFontsConf,
modernz-src,
...
}:
buildLua (finalAttrs: {
pname = "modernz";
version = mkVersion modernz-src;
src = modernz-src;
# Make font available to script
postInstall = ''
mkdir -p $out/share/fonts
cp -r ./fluent-system-icons.ttf $out/share/fonts
'';
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"
(toString (makeFontsConf {
fontDirectories = ["${finalAttrs.finalPackage}/share/fonts"];
}))
];
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.
'';
};
})