From b77674a5ead4cc1e7f8e8d641554a7925ed4b48e Mon Sep 17 00:00:00 2001 From: Victor Fuentes Date: Sat, 31 Jan 2026 14:01:58 -0800 Subject: [PATCH] appstream: 1.0.4 -> 1.1.2 --- nixos/tests/installed-tests/appstream-qt.nix | 2 +- .../development/libraries/appstream/default.nix | 17 ++++++----------- pkgs/development/libraries/appstream/qt.nix | 8 ++------ pkgs/top-level/qt5-packages.nix | 2 -- 4 files changed, 9 insertions(+), 20 deletions(-) diff --git a/nixos/tests/installed-tests/appstream-qt.nix b/nixos/tests/installed-tests/appstream-qt.nix index d08187bfe466..0d00cc4f2b4b 100644 --- a/nixos/tests/installed-tests/appstream-qt.nix +++ b/nixos/tests/installed-tests/appstream-qt.nix @@ -1,7 +1,7 @@ { pkgs, makeInstalledTest, ... }: makeInstalledTest { - tested = pkgs.libsForQt5.appstream-qt; + tested = pkgs.kdePackages.appstream-qt; testConfig = { appstream.enable = true; diff --git a/pkgs/development/libraries/appstream/default.nix b/pkgs/development/libraries/appstream/default.nix index 85ca849d5be4..61e1d7792264 100644 --- a/pkgs/development/libraries/appstream/default.nix +++ b/pkgs/development/libraries/appstream/default.nix @@ -4,7 +4,6 @@ buildPackages, replaceVars, fetchFromGitHub, - fetchpatch, meson, mesonEmulatorHook, appstream, @@ -21,7 +20,7 @@ xapian, libxml2, libxmlb, - libyaml, + libfyaml, gobject-introspection, itstool, gperf, @@ -31,6 +30,7 @@ gdk-pixbuf, pango, librsvg, + bash-completion, systemd, nixosTests, testers, @@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "appstream"; - version = "1.0.4"; + version = "1.1.2"; outputs = [ "out" @@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "ximion"; repo = "appstream"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-UnSJcXH0yWK/dPKgbOx9x3iJjKcKNYFkD2Qs5c3FtM8="; + sha256 = "sha256-tvdWWdL6PthffAZZnNZ3+17/eJdZFx8xFkqm7IvyPWE="; }; patches = [ @@ -65,12 +65,6 @@ stdenv.mkDerivation (finalAttrs: { # Allow installing installed tests to a separate output. ./installed-tests-path.patch - - (fetchpatch { - name = "static.patch"; - url = "https://github.com/ximion/appstream/commit/90675d8853188f65897d2453346cb0acd531b58f.patch"; - hash = "sha256-d3h5h7B/MP3Sun5YwYCqMHcw4PMMwg1YS/S9vsMzkQ4="; - }) ]; strictDeps = true; @@ -110,12 +104,13 @@ stdenv.mkDerivation (finalAttrs: { xapian libxml2 libxmlb - libyaml + libfyaml curl cairo gdk-pixbuf pango librsvg + bash-completion ] ++ lib.optionals withSystemd [ systemd diff --git a/pkgs/development/libraries/appstream/qt.nix b/pkgs/development/libraries/appstream/qt.nix index d79db8c3c640..dcd5593ba5e7 100644 --- a/pkgs/development/libraries/appstream/qt.nix +++ b/pkgs/development/libraries/appstream/qt.nix @@ -9,9 +9,6 @@ # TODO: look into using the libraries from the regular appstream derivation as we keep duplicates here -let - qtSuffix = lib.optionalString (lib.versions.major qtbase.version == "5") "5"; -in stdenv.mkDerivation { pname = "appstream-qt"; inherit (appstream) version src; @@ -31,7 +28,6 @@ stdenv.mkDerivation { mesonFlags = appstream.mesonFlags ++ [ (lib.mesonBool "qt" true) - (lib.mesonOption "qt-versions" (lib.versions.major qtbase.version)) ]; patches = appstream.patches; @@ -41,9 +37,9 @@ stdenv.mkDerivation { # AppStreamQt tries to be relocatable, in hacky cmake ways that generally fail # horribly on NixOS. Just hardcode the paths. postFixup = '' - sed -i "$dev/lib/cmake/AppStreamQt${qtSuffix}/AppStreamQt${qtSuffix}Config.cmake" \ + sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \ -e "/INTERFACE_INCLUDE_DIRECTORIES/ s@\''${PACKAGE_PREFIX_DIR}@$dev@" - sed -i "$dev/lib/cmake/AppStreamQt${qtSuffix}/AppStreamQt${qtSuffix}Config.cmake" \ + sed -i "$dev/lib/cmake/AppStreamQt/AppStreamQtConfig.cmake" \ -e "/IMPORTED_LOCATION/ s@\''${PACKAGE_PREFIX_DIR}@$out@" ''; diff --git a/pkgs/top-level/qt5-packages.nix b/pkgs/top-level/qt5-packages.nix index c6e9bab6d11d..cd59fcbb97bd 100644 --- a/pkgs/top-level/qt5-packages.nix +++ b/pkgs/top-level/qt5-packages.nix @@ -66,8 +66,6 @@ makeScopeWithSplicing' { accounts-qt = callPackage ../development/libraries/accounts-qt { }; - appstream-qt = callPackage ../development/libraries/appstream/qt.nix { }; - dxflib = callPackage ../development/libraries/dxflib { }; drumstick = callPackage ../development/libraries/drumstick { };