···
stdenv.mkDerivation rec {
url = "https://people.mpi-inf.mpg.de/~uwe/misc/${pname}/${pname}-${version}.tar.gz";
19
-
sha256 = "1vp053bwv8sr40p3pn4sjaiq570zp7knh99z9ynk30v7ml4cz2i8";
19
+
hash = "sha256-mVBt2HlOGl1c1YEebB5V7u+Yn4w1Af25Jlvalyq6FjA=";
22
-
# remove for version >1.3
23
-
patches = [ ./determinism.patch ];
···
SIZES = 11 12 13 14 15 16 17 18 22 \
11b 12b 13b 14b 15b 16b 17b 18b 22b 15i 16i 17i 18i
···
''cp "${variantsDat}" VARIANTS.dat''
61
-
# convert bdf fonts to psf
64
-
cd ${bdf2psf}/share/bdf2psf
65
-
for i in $build/genbdf/*.bdf; do
66
-
name="$(basename $i .bdf)"
68
-
--fb "$i" standard.equivalents \
69
-
ascii.set+useful.set+linux.set 512 \
70
-
"$build/psf/$name.psf"
74
-
# convert unicode bdf fonts to otb
75
-
for i in $build/genbdf/*-uni.bdf; do
76
-
name="$(basename $i .bdf)"
77
-
fonttosfnt -v -o "$build/otb/$name.otb" "$i"
83
-
fontDir="$out/share/consolefonts"
84
-
install -m 644 -D psf/*.psf -t "$fontDir"
87
-
fontDir="$out/share/fonts/X11/misc"
88
-
install -m 644 -D otb/*.otb -t "$fontDir"
89
-
mkfontdir "$fontDir"
92
-
# Nix with multiple outputs adds several flags
93
-
# that the ./configure script doesn't understand.
96
-
./configure --prefix="$out"
64
+
--otbdir="$out/share/fonts/X11/misc" \
65
+
--pcfdir="$out/share/fonts/X11/misc" \
66
+
--conslinuxdir="$out/share/consolefonts"