tracker: add meta.pkgConfigModules and tests.pkg-config

This commit is contained in:
Eldritch Cookie 2024-01-16 12:09:41 -03:00 committed by Rodney Lorrimar
parent bee5bd0106
commit 0ec43c6ebe
No known key found for this signature in database
GPG key ID: D8B75C95FB4D1143

View file

@ -28,16 +28,17 @@
, systemd , systemd
, dbus , dbus
, writeText , writeText
, testers
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "tracker"; pname = "tracker";
version = "3.6.0"; version = "3.6.0";
outputs = [ "out" "dev" "devdoc" ]; outputs = [ "out" "dev" "devdoc" ];
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = with finalAttrs; "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "Ulks/hm6/9FtvkdHW+fadQ29C2Mz/XrLYPqp2lvEDfI="; sha256 = "Ulks/hm6/9FtvkdHW+fadQ29C2Mz/XrLYPqp2lvEDfI=";
}; };
@ -162,7 +163,10 @@ stdenv.mkDerivation rec {
passthru = { passthru = {
updateScript = gnome.updateScript { updateScript = gnome.updateScript {
packageName = pname; packageName = finalAttrs.pname;
};
tests.pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
}; };
}; };
@ -172,5 +176,6 @@ stdenv.mkDerivation rec {
maintainers = teams.gnome.members; maintainers = teams.gnome.members;
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
platforms = platforms.unix; platforms = platforms.unix;
pkgConfigModules = [ "tracker-sparql-3.0" "tracker-testutils-3.0" ];
}; };
} })