From bfbfe2f22ccf3df42fb6111eeeb44ebbc191a89c Mon Sep 17 00:00:00 2001 From: whoomee Date: Thu, 13 Aug 2026 16:07:37 +0200 Subject: [PATCH] libcamera: specify and test meta.pkgConfigModules --- pkgs/by-name/li/libcamera/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/libcamera/package.nix b/pkgs/by-name/li/libcamera/package.nix index a2c70f40200c..4673c899a7a8 100644 --- a/pkgs/by-name/li/libcamera/package.nix +++ b/pkgs/by-name/li/libcamera/package.nix @@ -1,6 +1,7 @@ { stdenv, fetchFromGitLab, + testers, nix-update-script, lib, meson, @@ -154,7 +155,11 @@ stdenv.mkDerivation (finalAttrs: { FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; }; }; - passthru.updateScript = nix-update-script { }; + passthru = { + updateScript = nix-update-script { }; + + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + }; meta = { description = "Open source camera stack and framework for Linux, Android, and ChromeOS"; @@ -162,6 +167,10 @@ stdenv.mkDerivation (finalAttrs: { downloadPage = "https://gitlab.freedesktop.org/camera/libcamera"; changelog = "https://gitlab.freedesktop.org/camera/libcamera/-/releases/${finalAttrs.src.tag}"; license = lib.licenses.lgpl2Plus; + pkgConfigModules = [ + "libcamera" + "libcamera-base" + ]; maintainers = with lib.maintainers; [ citadelcore tmarkus