From 7ba00255d0a68aaa8fee52c402a706fce7432952 Mon Sep 17 00:00:00 2001 From: Max S <150921823+maxschipper@users.noreply.github.com> Date: Sun, 4 Jan 2026 14:23:33 +0100 Subject: [PATCH] libmatchbox: 1.11 -> 1.14 This fixes a build error with GCC15. The license is also updated to reflect the upstream changes. The newer releases are only available as snapshots, so we switch to using autoreconfHook and pkg-config. Dependencies are now moved to propagatedBuildInputs so downstream packages (matchbox) can correctly detect them via pkg-config. This also allows us to drop the manual NIX_LDFLAGS = "-lX11". --- pkgs/by-name/li/libmatchbox/package.nix | 34 +++++++++++++++---------- 1 file changed, 20 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/li/libmatchbox/package.nix b/pkgs/by-name/li/libmatchbox/package.nix index c8f757899b31..2faa140afea7 100644 --- a/pkgs/by-name/li/libmatchbox/package.nix +++ b/pkgs/by-name/li/libmatchbox/package.nix @@ -2,41 +2,47 @@ lib, stdenv, fetchurl, + autoreconfHook, + libICE, + libjpeg, + libpng, libX11, libXext, - libpng, libXft, - libICE, pango, - libjpeg, + pkg-config, }: stdenv.mkDerivation rec { pname = "libmatchbox"; - version = "1.11"; + version = "1.14"; - buildInputs = [ - libXft - libICE - pango - libjpeg + nativeBuildInputs = [ + autoreconfHook + pkg-config ]; propagatedBuildInputs = [ + libICE + libjpeg + libpng libX11 libXext - libpng + libXft + pango ]; - NIX_LDFLAGS = "-lX11"; src = fetchurl { - url = "https://downloads.yoctoproject.org/releases/matchbox/libmatchbox/${version}/libmatchbox-${version}.tar.bz2"; - sha256 = "0lvv44s3bf96zvkysa4ansxj2ffgj3b5kgpliln538q4wd9ank15"; + url = "https://git.yoctoproject.org/libmatchbox/snapshot/libmatchbox-${version}.tar.gz"; + sha256 = "1b66jl178pkwmswf1gqcyrpy15rll1znz38n07l9b3ybga13w31d"; }; meta = { description = "Library of the matchbox X window manager"; homepage = "http://matchbox-project.org/"; - license = lib.licenses.gpl2Plus; + license = with lib.licenses; [ + lgpl2Plus + hpnd + ]; platforms = lib.platforms.unix; }; }