1 { lib, stdenv, fetchurl, bdftopcf, mkfontdir, mkfontscale }:
3 stdenv.mkDerivation rec {
4 pname = "dosemu-fonts";
8 url = "mirror://sourceforge/dosemu/dosemu-${version}.tgz";
9 sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw";
13 tar xf "$src" --anchored --wildcards '*/etc/*.bdf' '*/etc/dosemu.alias'
14 fontPath="$out/share/fonts/X11/misc/dosemu"
16 for i in */etc/*.bdf; do
17 fontOut="$out/share/fonts/X11/misc/dosemu/$(basename "$i" .bdf).pcf.gz"
18 echo -n "Installing font $fontOut..." >&2
19 ${bdftopcf}/bin/bdftopcf $i | gzip -c -9 -n > "$fontOut"
22 cp */etc/dosemu.alias "$fontPath/fonts.alias"
24 ${mkfontdir}/bin/mkfontdir
25 ${mkfontscale}/bin/mkfontscale
28 outputHashAlgo = "sha256";
29 outputHashMode = "recursive";
30 outputHash = "1miqv0ral5vazx721wildjlzvji5r7pbgm39c0cpj5ywafaikxr8";
33 description = "Various fonts from the DOSEmu project";
34 license = lib.licenses.gpl2Only;