nixos-configs/home/mpv/scripts/modernx.nix
matt1432 a7b7966d52
All checks were successful
Discord / discord commits (push) Has been skipped
refactor: improve custom packages' versioning
2024-03-25 22:42:23 -04:00

25 lines
488 B
Nix

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