nixos-configs/home/mpv/scripts/modernx.nix
matt1432 8e69d3375d
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(mpris scripts): move src to flake.nix
2024-01-01 17:34:49 -05:00

25 lines
483 B
Nix

{
modernx-src,
makeFontsConf,
buildLua,
...
}:
buildLua (finalAttrs: {
pname = "modernx";
version = modernx-src.rev;
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"];
}))
];
})