font-manager 0.9.4 fails to compile against gtk4 4.22: the Gtk.DragIcon.get_for_drag binding changed in the gtk4 vapi, producing 'use new operator' errors in Collections.vala and FontList.vala that broke home-manager-path for AZ-LT-NIX. Fix is upstream PR FontManager/font-manager#468, already carried by nixpkgs master but predating our locked nixpkgs-unstable. Vendor the patch as an overlay mod (from m3tam3re/nixos-config overlays/mods) and enable outputs.overlays.modifications in hosts/common. Thin clients are unaffected - they do not import hosts/common. Drop once the nixpkgs lock carries fix-compilation-error-with-newer-vala-versions.patch. Also resolve the evaluation warning on AZ-LT-NIX where programs.nh.clean.enable and nix.gc.automatic were both enabled: keep the nh clean timer (--keep 3 --keep-since 4d) and disable the plain nix-gc timer via mkForce on this host only.
21 lines
985 B
Nix
21 lines
985 B
Nix
# font-manager 0.9.4: fix compilation against gtk4 >= 4.22 / newer Vala.
|
|
#
|
|
# In GTK 4.22 the Gtk.DragIcon.get_for_drag binding changed in the gtk4
|
|
# vapi, turning `Gtk.DragIcon.get_for_drag(drag)` into a hard Vala error
|
|
# ("use `new' operator to create new objects") in Collections.vala and
|
|
# FontList.vala. 0.9.4 is the latest upstream release and even upstream
|
|
# master is unfixed; the fix lives in FontManager/font-manager#468 and is
|
|
# already carried as a patch by current nixpkgs master — but our locked
|
|
# nixpkgs-unstable predates it.
|
|
#
|
|
# Vendored from m3tam3re/nixos-config overlays/mods (2026-08-31).
|
|
# Drop this overlay (and the patch file) once our nixpkgs lock advances
|
|
# past nixpkgs@e2ad529-vendoring (pkgs/by-name/fo/font-manager carries
|
|
# fix-compilation-error-with-newer-vala-versions.patch).
|
|
{prev}:
|
|
prev.font-manager.overrideAttrs (old: {
|
|
patches =
|
|
(old.patches or [])
|
|
++ [./patches/font-manager-fix-compilation-error-with-newer-vala-versions.patch];
|
|
})
|