clap: add meta.pkgConfigModules and testers.hasPkgConfigModules
This commit is contained in:
parent
cc36b995f0
commit
28762e23a1
1 changed files with 7 additions and 3 deletions
|
@ -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 ];
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue