From 3980e3a3fb93cc181ba68cbf8700c6881ba5132d Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 15 Sep 2025 22:59:50 +0200 Subject: [PATCH 1/2] uw-ttyp0: 1.3 -> 2.1 --- pkgs/by-name/uw/uw-ttyp0/package.nix | 50 ++++++---------------------- 1 file changed, 10 insertions(+), 40 deletions(-) diff --git a/pkgs/by-name/uw/uw-ttyp0/package.nix b/pkgs/by-name/uw/uw-ttyp0/package.nix index eb5df76c90c2..94161e2aae90 100644 --- a/pkgs/by-name/uw/uw-ttyp0/package.nix +++ b/pkgs/by-name/uw/uw-ttyp0/package.nix @@ -12,16 +12,13 @@ stdenv.mkDerivation rec { pname = "uw-ttyp0"; - version = "1.3"; + version = "2.1"; src = fetchurl { url = "https://people.mpi-inf.mpg.de/~uwe/misc/${pname}/${pname}-${version}.tar.gz"; - sha256 = "1vp053bwv8sr40p3pn4sjaiq570zp7knh99z9ynk30v7ml4cz2i8"; + hash = "sha256-mVBt2HlOGl1c1YEebB5V7u+Yn4w1Af25Jlvalyq6FjA="; }; - # remove for version >1.3 - patches = [ ./determinism.patch ]; - nativeBuildInputs = [ perl bdftopcf @@ -39,6 +36,9 @@ stdenv.mkDerivation rec { SIZES = 11 12 13 14 15 16 17 18 22 \ 11b 12b 13b 14b 15b 16b 17b 18b 22b 15i 16i 17i 18i ENCODINGS = uni + GEN_PCF = 1 + GEN_OTB = 1 + GEN_CONS_LINUX = 1 EOF '' else @@ -57,43 +57,13 @@ stdenv.mkDerivation rec { ''cp "${variantsDat}" VARIANTS.dat'' ); - postBuild = '' - # convert bdf fonts to psf - build=$(pwd) - mkdir {psf,otb} - cd ${bdf2psf}/share/bdf2psf - for i in $build/genbdf/*.bdf; do - name="$(basename $i .bdf)" - bdf2psf \ - --fb "$i" standard.equivalents \ - ascii.set+useful.set+linux.set 512 \ - "$build/psf/$name.psf" - done - cd - - - # convert unicode bdf fonts to otb - for i in $build/genbdf/*-uni.bdf; do - name="$(basename $i .bdf)" - fonttosfnt -v -o "$build/otb/$name.otb" "$i" - done - ''; - - postInstall = '' - # install psf fonts - fontDir="$out/share/consolefonts" - install -m 644 -D psf/*.psf -t "$fontDir" - - # install otb fonts - fontDir="$out/share/fonts/X11/misc" - install -m 644 -D otb/*.otb -t "$fontDir" - mkfontdir "$fontDir" - ''; - - # Nix with multiple outputs adds several flags - # that the ./configure script doesn't understand. configurePhase = '' runHook preConfigure - ./configure --prefix="$out" + ./configure \ + --prefix="$out" \ + --otbdir="$out/share/fonts/X11/misc" \ + --pcfdir="$out/share/fonts/X11/misc" \ + --conslinuxdir="$out/share/consolefonts" runHook postConfigure ''; From ad7b1a561b0bf3c34452233a6237e55790fe78c4 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 15 Sep 2025 23:10:16 +0200 Subject: [PATCH 2/2] doc/release-notes: mention uw-ttyp0 update --- doc/release-notes/rl-2511.section.md | 3 +++ pkgs/by-name/uw/uw-ttyp0/determinism.patch | 13 ------------- 2 files changed, 3 insertions(+), 13 deletions(-) delete mode 100644 pkgs/by-name/uw/uw-ttyp0/determinism.patch diff --git a/doc/release-notes/rl-2511.section.md b/doc/release-notes/rl-2511.section.md index a98d2f468196..e5531c8ce443 100644 --- a/doc/release-notes/rl-2511.section.md +++ b/doc/release-notes/rl-2511.section.md @@ -40,6 +40,9 @@ backend even if NCG is available. In this case, it is best to use the `forceLlvmCodegenBackend` helper. In all other cases, like linking against `libLLVM`, Haskell packages should use the appropriate version of `llvmPackages` from `pkgs`. +- `uw-ttyp0` has been updated to version 2.1. The filenames of the OTB and PSF fonts have been changed to match the upstream naming convention. + If you were loading a font by path, for example in the `console.font` NixOS option, remember to update the filename accordingly. + - `base16-builder` node package has been removed due to lack of upstream maintenance. - `python3Packages.bjoern` has been removed, as the upstream is unmaintained and it depends on a 14-year-old version of http-parser with numerous vulnerabilities. diff --git a/pkgs/by-name/uw/uw-ttyp0/determinism.patch b/pkgs/by-name/uw/uw-ttyp0/determinism.patch deleted file mode 100644 index 8546ad35933f..000000000000 --- a/pkgs/by-name/uw/uw-ttyp0/determinism.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/Makefile.in b/Makefile.in -index b9736cd..5740412 100644 ---- a/Makefile.in -+++ b/Makefile.in -@@ -76,7 +76,7 @@ bdf : $(bdf) - - genpcf/%.pcf.gz : genbdf/%.bdf - $(BDFTOPCF) $< > $(@:.pcf.gz=.pcf) -- gzip -9 -f $(@:.pcf.gz=.pcf) -+ gzip -n -9 -f $(@:.pcf.gz=.pcf) - - genbdf/t0-11-uni.bdf : bdf/t0-11.bdf bdf/t0-12.bdf VARIANTS.dat mgl/unicode.mgl - $(MKSHALLOW) bdf/t0-12.bdf | cat - bdf/t0-11.bdf | $(BDFMANGLE) - VARIANTS.dat mgl/unicode.mgl > $@