nixos-configs/legacyPackages/mpv-scripts/modernx.nix
matt1432 c701e335d1
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(flake): move some code out of flake.in.nix
2024-07-21 17:12:26 -04:00

27 lines
503 B
Nix

{
buildLua,
makeFontsConf,
mkVersion,
modernx-src,
...
}:
buildLua (finalAttrs: {
pname = "modernx";
version = mkVersion modernx-src;
src = modernx-src;
# Make font available to script
postInstall = ''
mkdir -p $out/share/fonts
cp -r ./Material-Design-Iconic-Font.ttf $out/share/fonts
'';
passthru.extraWrapperArgs = [
"--set"
"FONTCONFIG_FILE"
(toString (makeFontsConf {
fontDirectories = ["${finalAttrs.finalPackage}/share/fonts"];
}))
];
})