From 36ba93434879027d3c482a77c0bcdea8d17d84cb Mon Sep 17 00:00:00 2001 From: Anthony Roussel Date: Sat, 13 Apr 2024 12:12:20 +0200 Subject: [PATCH] pcsclite: add passthru.tests.pkg-config, meta.pkgConfigModules --- pkgs/tools/security/pcsclite/default.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix index 956bf451c7bf..54f6a2099fe1 100644 --- a/pkgs/tools/security/pcsclite/default.nix +++ b/pkgs/tools/security/pcsclite/default.nix @@ -75,9 +75,12 @@ stdenv.mkDerivation (finalAttrs: { ++ lib.optionals polkitSupport [ dbus polkit ]; passthru = { - tests.version = testers.testVersion { - package = finalAttrs.finalPackage; - command = "pcscd --version"; + tests = { + pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + version = testers.testVersion { + package = finalAttrs.finalPackage; + command = "pcscd --version"; + }; }; updateScript = nix-update-script { }; }; @@ -89,6 +92,7 @@ stdenv.mkDerivation (finalAttrs: { license = licenses.bsd3; mainProgram = "pcscd"; maintainers = [ maintainers.anthonyroussel ]; + pkgConfigModules = [ "libpcsclite" ]; platforms = with platforms; unix; }; })