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