10 stdenv.mkDerivation rec {
11 pname = "dosemu-fonts";
15 url = "mirror://sourceforge/dosemu/dosemu-${version}.tgz";
16 sha256 = "0l1zwmw42mpakjrzmbygshcg2qzq9mv8lx42738rz3j9hrqzg4pw";
20 tar xf "$src" --anchored --wildcards '*/etc/*.bdf' '*/etc/dosemu.alias'
21 fontPath="$out/share/fonts/X11/misc/dosemu"
23 for i in */etc/*.bdf; do
24 fontOut="$out/share/fonts/X11/misc/dosemu/$(basename "$i" .bdf).pcf.gz"
25 echo -n "Installing font $fontOut..." >&2
26 ${bdftopcf}/bin/bdftopcf $i | gzip -c -9 -n > "$fontOut"
29 cp */etc/dosemu.alias "$fontPath/fonts.alias"
31 ${mkfontdir}/bin/mkfontdir
32 ${mkfontscale}/bin/mkfontscale
35 outputHashAlgo = "sha256";
36 outputHashMode = "recursive";
37 outputHash = "1miqv0ral5vazx721wildjlzvji5r7pbgm39c0cpj5ywafaikxr8";
40 description = "Various fonts from the DOSEmu project";
41 license = lib.licenses.gpl2Only;