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
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
bdftopcf,
|
|
mkfontscale,
|
|
writeScript,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "font-daewoo-misc";
|
|
version = "1.0.4";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://xorg/individual/font/font-daewoo-misc-${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-9jyLPcjzAJjLhot9ssLAyLWz/Szv0EQDVpekPUx6TzE=";
|
|
};
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
bdftopcf
|
|
mkfontscale
|
|
];
|
|
|
|
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 = "Daewoo Gothic and Daewoo Mincho pcf fonts";
|
|
homepage = "https://gitlab.freedesktop.org/xorg/font/daewoo-misc";
|
|
# no license, just a copyright notice
|
|
license = lib.licenses.unfree;
|
|
maintainers = [ ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|