jack: Add meta.pkgConfigModules and test

This commit is contained in:
John Ericson 2023-02-12 14:29:24 -05:00
parent dc3278615e
commit c733f0bf8a
2 changed files with 15 additions and 5 deletions

View file

@ -10,6 +10,8 @@
# Extra options
, prefix ? ""
, testers
}:
with lib;
@ -25,7 +27,7 @@ let
optAlsaLib = if libOnly then null else shouldUsePkg alsa-lib;
optLibopus = shouldUsePkg libopus;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "${prefix}jack2";
version = "1.9.19";
@ -63,11 +65,14 @@ stdenv.mkDerivation rec {
wrapProgram $out/bin/jack_control --set PYTHONPATH $PYTHONPATH
'');
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "JACK audio connection kit, version 2 with jackdbus";
homepage = "https://jackaudio.org";
license = licenses.gpl2Plus;
pkgConfigModules = [ "jack" ];
platforms = platforms.unix;
maintainers = with maintainers; [ goibhniu ];
};
}
})

View file

@ -2,6 +2,8 @@
# Optional Dependencies
, alsa-lib ? null, db ? null, libuuid ? null, libffado ? null, celt ? null
, testers
}:
let
@ -13,12 +15,12 @@ let
optLibffado = shouldUsePkg libffado;
optCelt = shouldUsePkg celt;
in
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "jack1";
version = "0.125.0";
src = fetchurl {
url = "https://jackaudio.org/downloads/jack-audio-connection-kit-${version}.tar.gz";
url = "https://jackaudio.org/downloads/jack-audio-connection-kit-${finalAttrs.version}.tar.gz";
sha256 = "0i6l25dmfk2ji2lrakqq9icnwjxklgcjzzk65dmsff91z2zva5rm";
};
@ -30,11 +32,14 @@ stdenv.mkDerivation rec {
buildInputs = [ optAlsaLib optDb optLibffado optCelt ];
propagatedBuildInputs = [ optLibuuid ];
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = with lib; {
broken = stdenv.isDarwin;
description = "JACK audio connection kit";
homepage = "https://jackaudio.org";
license = with licenses; [ gpl2 lgpl21 ];
pkgConfigModules = [ "jack" ];
platforms = platforms.unix;
};
}
})