Merge pull request #271250 from Kiskae/libva-pkg-check

libva: add test for pkg-config definitions
This commit is contained in:
Emily Trau 2023-12-01 22:54:17 +11:00 committed by GitHub
commit 3ca25cf885
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,16 +9,17 @@
, mpv , mpv
, intel-vaapi-driver , intel-vaapi-driver
, vlc , vlc
, testers
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libva" + lib.optionalString minimal "-minimal"; pname = "libva" + lib.optionalString minimal "-minimal";
version = "2.20.0"; version = "2.20.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "intel"; owner = "intel";
repo = "libva"; repo = "libva";
rev = version; rev = finalAttrs.version;
sha256 = "sha256-ENAsytjqvS8xHZyZLPih3bzBgQ1f/j+s3dWZs1GTWHs="; sha256 = "sha256-ENAsytjqvS8xHZyZLPih3bzBgQ1f/j+s3dWZs1GTWHs=";
}; };
@ -41,6 +42,7 @@ stdenv.mkDerivation rec {
# other drivers depending on libva and selected application users. # other drivers depending on libva and selected application users.
# Please get a confirmation from the maintainer before adding more applications. # Please get a confirmation from the maintainer before adding more applications.
inherit intel-compute-runtime intel-media-driver intel-vaapi-driver mpv vlc; inherit intel-compute-runtime intel-media-driver intel-vaapi-driver mpv vlc;
pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
}; };
meta = with lib; { meta = with lib; {
@ -52,9 +54,12 @@ stdenv.mkDerivation rec {
driver-specific acceleration backends for each supported hardware vendor. driver-specific acceleration backends for each supported hardware vendor.
''; '';
homepage = "https://01.org/linuxmedia/vaapi"; homepage = "https://01.org/linuxmedia/vaapi";
changelog = "https://raw.githubusercontent.com/intel/libva/${version}/NEWS"; changelog = "https://raw.githubusercontent.com/intel/libva/${finalAttrs.version}/NEWS";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ SuperSandro2000 ]; maintainers = with maintainers; [ SuperSandro2000 ];
pkgConfigModules = [ "libva" "libva-drm" ] ++ lib.optionals (!minimal) [
"libva-glx" "libva-wayland" "libva-x11"
];
platforms = platforms.unix; platforms = platforms.unix;
}; };
} })