pcsclite: add passthru.tests.pkg-config, meta.pkgConfigModules

This commit is contained in:
Anthony Roussel 2024-04-13 12:12:20 +02:00
parent a0c3d367f1
commit 36ba934348
No known key found for this signature in database
GPG Key ID: 9DC4987B1A55E75E

View File

@ -75,10 +75,13 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optionals polkitSupport [ dbus polkit ]; ++ lib.optionals polkitSupport [ dbus polkit ];
passthru = { passthru = {
tests.version = testers.testVersion { tests = {
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
version = testers.testVersion {
package = finalAttrs.finalPackage; package = finalAttrs.finalPackage;
command = "pcscd --version"; command = "pcscd --version";
}; };
};
updateScript = nix-update-script { }; updateScript = nix-update-script { };
}; };
@ -89,6 +92,7 @@ stdenv.mkDerivation (finalAttrs: {
license = licenses.bsd3; license = licenses.bsd3;
mainProgram = "pcscd"; mainProgram = "pcscd";
maintainers = [ maintainers.anthonyroussel ]; maintainers = [ maintainers.anthonyroussel ];
pkgConfigModules = [ "libpcsclite" ];
platforms = with platforms; unix; platforms = with platforms; unix;
}; };
}) })