Files
nixpkgs/pkgs/by-name/fo/font-misc-misc/package.nix
quantenzitrone 3fd4376620 font-{{arabic,cursor,daewoo,dec,jis,misc}-misc,ibm-type1,misc-meltho}: move font output to $out/share/fonts/X11
i have no idea why the fonts were in $out/lib/X11/fonts

this also changes the location of font-{cursor,misc}-misc in xdummy
2025-11-16 00:32:15 +01:00

52 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
font-util,
bdftopcf,
mkfontscale,
writeScript,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "font-misc-misc";
version = "1.1.3";
src = fetchurl {
url = "mirror://xorg/individual/font/font-misc-misc-${finalAttrs.version}.tar.xz";
hash = "sha256-eavjYfWLshren1ZYmOSGMAzhzGIdUoW+wm4Utqhhj+0=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
bdftopcf
font-util
mkfontscale
];
buildInputs = [ font-util ];
configureFlags = [ "--with-fontrootdir=$(out)/share/fonts/X11" ];
passthru = {
updateScript = writeScript "update-${finalAttrs.pname}" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts
version="$(list-directory-versions --pname ${finalAttrs.pname} \
--url https://xorg.freedesktop.org/releases/individual/font/ \
| sort -V | tail -n1)"
update-source-version ${finalAttrs.pname} "$version"
'';
};
meta = {
description = "Misc pcf fonts in different sizes";
homepage = "https://gitlab.freedesktop.org/xorg/font/misc-misc";
license = lib.licenses.publicDomain;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})