clap: add meta.pkgConfigModules and testers.hasPkgConfigModules

This commit is contained in:
Robert Scott 2024-01-23 22:52:30 +00:00
parent cc36b995f0
commit 28762e23a1

View file

@ -2,16 +2,17 @@
, stdenv
, fetchFromGitHub
, cmake
, testers
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "clap";
version = "1.2.0";
src = fetchFromGitHub {
owner = "free-audio";
repo = "clap";
rev = version;
rev = finalAttrs.version;
hash = "sha256-BNT2yWIlWk8kzhZteh7TaamliwJI+lzWVs/8XCFsuUc=";
};
@ -22,11 +23,14 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake ];
passthru.tests.pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; };
meta = with lib; {
description = "Clever Audio Plugin API interface headers";
homepage = "https://cleveraudio.org/";
pkgConfigModules = [ "clap" ];
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ ris ];
};
}
})