depot/third_party/nixpkgs/pkgs/development/libraries/clap/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

36 lines
860 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "clap";
version = "1.2.2";
src = fetchFromGitHub {
owner = "free-audio";
repo = "clap";
rev = finalAttrs.version;
hash = "sha256-W3cvAtBrd+zyGj7xNSuFFChUUVjRadH6aCv5Zcvq/qs=";
};
postPatch = ''
substituteInPlace clap.pc.in \
--replace '$'"{prefix}/@CMAKE_INSTALL_INCLUDEDIR@" '@CMAKE_INSTALL_FULL_INCLUDEDIR@'
'';
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 ];
};
})