1 { lib, stdenv, fetchurl, bdftopcf
11 url = "http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts.tar.gz";
12 sha256 = "12hgizg25fzmk10wjl0c88x97h3pg5r9ga122s3y28wixz6x2bvh";
15 url = "http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-asian.tar.gz";
16 sha256 = "0ibjy4xpz5j373hsdr8bx99czfpclqmviwwv768j8n7z12z3wa51";
19 url = "http://www.cl.cam.ac.uk/~mgk25/download/ucs-fonts-75dpi100dpi.tar.gz";
20 sha256 = "08vqr8yb636xa1s28vf3pm22dzkia0gisvsi2svqjqh4kk290pzh";
27 [ bdftopcf libfaketime xorg.fonttosfnt
33 name=$(basename "$i" .bdf)
35 # generate pcf fonts (for X11 applications)
36 bdftopcf -t "$i" | gzip -n -9 -c > "$name.pcf.gz"
38 # generate otb fonts (for GTK applications)
39 faketime -f "1970-01-01 00:00:01" \
40 fonttosfnt -v -o "$name.otb" "$i"
45 install -m 644 -D *.otb *.pcf.gz -t "$out/share/fonts/misc"
46 install -m 644 -D *.bdf -t "$bdf/share/fonts/misc"
48 mkfontdir "$out/share/fonts/misc"
49 mkfontdir "$bdf/share/fonts/misc"
52 outputs = [ "out" "bdf" ];
55 homepage = "https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html";
56 description = "Unicode bitmap fonts";
57 license = licenses.publicDomain;
58 maintainers = [ maintainers.raskin ];
59 platforms = platforms.all;