graphene: add pkgConfigModules metadata and corresponding test

This commit is contained in:
Eldritch Cookie 2024-01-12 13:41:15 -03:00 committed by Rodney Lorrimar
parent c28dc44c01
commit 7f52f0ab0a
No known key found for this signature in database
GPG Key ID: D8B75C95FB4D1143

View File

@ -19,9 +19,10 @@
, gobject-introspection
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
, makeWrapper
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "graphene";
version = "1.10.8";
@ -31,8 +32,8 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "ebassi";
repo = pname;
rev = version;
repo = finalAttrs.pname;
rev = finalAttrs.version;
sha256 = "P6JQhSktzvyMHatP/iojNGXPmcsxsFxdYerXzS23ojI=";
};
@ -109,6 +110,9 @@ stdenv.mkDerivation rec {
passthru = {
tests = {
installedTests = nixosTests.installed-tests.graphene;
pkg-config = testers.hasPkgConfigModules {
package = finalAttrs.finalPackage;
};
};
updateScript = nix-update-script { };
@ -120,5 +124,6 @@ stdenv.mkDerivation rec {
license = licenses.mit;
maintainers = teams.gnome.members ++ (with maintainers; [ ]);
platforms = platforms.unix;
pkgConfigModules = [ "graphene-1.0" "graphene-gobject-1.0" ];
};
}
})