9 stdenv.mkDerivation rec {
10 pname = "efont-unicode";
14 url = "http://openlab.ring.gr.jp/efont/dist/unicode-bdf/${pname}-bdf-${version}.tar.bz2";
15 sha256 = "sha256-fT7SsYlV3dCQrf0IZfiNI1grj3ngDgr8IkWdg+f9m3M=";
18 nativeBuildInputs = with xorg; [
28 # convert bdf fonts to pcf
30 bdftopcf -t -o "''${f%.bdf}.pcf" "$f"
34 # convert bdf fonts to otb
36 faketime -f "1970-01-01 00:00:01" \
37 fonttosfnt -v -m 2 -o "''${f%.bdf}.otb" "$f"
47 install -D -m 644 -t "$out/$dir" *.otb *.pcf.gz
48 install -D -m 644 -t "$bdf/$dir" *.bdf
61 description = "/efont/ Unicode bitmap font";
62 homepage = "http://openlab.ring.gr.jp/efont/unicode/";
63 license = licenses.bsd3;
64 platforms = platforms.all;
65 maintainers = [ maintainers.ncfavier ];