2023-12-16 16:03:36 -05:00
|
|
|
{
|
2024-01-01 17:34:49 -05:00
|
|
|
modernx-src,
|
2023-12-16 16:03:36 -05:00
|
|
|
makeFontsConf,
|
|
|
|
buildLua,
|
2024-01-01 17:34:49 -05:00
|
|
|
...
|
2023-12-16 16:03:36 -05:00
|
|
|
}:
|
|
|
|
buildLua (finalAttrs: {
|
|
|
|
pname = "modernx";
|
2024-01-01 17:34:49 -05:00
|
|
|
version = modernx-src.rev;
|
2023-12-16 16:03:36 -05:00
|
|
|
|
2024-01-01 17:34:49 -05:00
|
|
|
src = modernx-src;
|
2023-12-16 16:03:36 -05:00
|
|
|
|
|
|
|
# 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"];
|
|
|
|
}))
|
|
|
|
];
|
|
|
|
})
|