1 { lib, stdenv, fetchurl, xorg, libfaketime }:
3 stdenv.mkDerivation rec {
8 url = "https://www.math.nmsu.edu/~mleisher/Software/cu/cu${version}.tgz";
9 sha256 = "1xn14jbv3m1khy7ydvad9ydkn7yygdbhjy9wm1v000jzjwr3lv21";
12 nativeBuildInputs = [ xorg.fonttosfnt xorg.mkfontscale libfaketime ];
15 # convert bdf fonts to otb
17 name=$(basename "$i" .bdf)
18 faketime -f "1970-01-01 00:00:01" fonttosfnt -g 2 -m 2 -v -o "$name.otb" "$i"
23 # install otb and bdf fonts
24 fontDir="$out/share/fonts"
25 install -m 644 -D *.bdf *.otb -t "$fontDir"
30 description = "Unicode font";
31 license = licenses.mit;
32 maintainers = [ maintainers.raskin ];