gstreamer: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-11 10:40:35 -05:00
parent 81655d432d
commit 4180befaaf
2 changed files with 26 additions and 7 deletions

View file

@ -37,15 +37,18 @@
, enableCdparanoia ? (!stdenv.isDarwin)
, cdparanoia
, glib
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gst-plugins-base";
version = "1.20.3";
outputs = [ "out" "dev" ];
src = fetchurl {
src = let
inherit (finalAttrs) pname version;
in fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-fjCz3YGnA4D/dVT5mEcdaZb/drvm/FRHCW+FHiRHPJ8=";
};
@ -146,11 +149,19 @@ stdenv.mkDerivation rec {
waylandEnabled = enableWayland;
};
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = with lib; {
description = "Base GStreamer plug-ins and helper libraries";
homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
pkgConfigModules = [
"gstreamer-audio-1.0"
"gstreamer-base-1.0"
"gstreamer-net-1.0"
"gstreamer-video-1.0"
];
platforms = platforms.unix;
maintainers = with maintainers; [ matthewbauer ];
};
}
})

View file

@ -17,9 +17,10 @@
, lib
, CoreServices
, gobject-introspection
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gstreamer";
version = "1.20.3";
@ -32,7 +33,9 @@ stdenv.mkDerivation rec {
# - https://github.com/NixOS/nixpkgs/issues/98769#issuecomment-702296551
];
src = fetchurl {
src = let
inherit (finalAttrs) pname version;
in fetchurl {
url = "https://gstreamer.freedesktop.org/src/${pname}/${pname}-${version}.tar.xz";
sha256 = "sha256-YH2vZLu9X7GK+dF+IcDSLE1wL//oOyPLItGxryyiOio=";
};
@ -108,11 +111,16 @@ stdenv.mkDerivation rec {
setupHook = ./setup-hook.sh;
meta = with lib ;{
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = with lib; {
description = "Open source multimedia framework";
homepage = "https://gstreamer.freedesktop.org";
license = licenses.lgpl2Plus;
pkgConfigModules = [
"gstreamer-controller-1.0"
];
platforms = platforms.unix;
maintainers = with maintainers; [ ttuegel matthewbauer ];
};
}
})