depot/third_party/nixpkgs/pkgs/development/libraries/clap/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

36 lines
860 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "clap";
version = "1.2.1";
src = fetchFromGitHub {
owner = "free-audio";
repo = "clap";
rev = finalAttrs.version;
hash = "sha256-3VDl6hMSRFrMtYeiUMoZhJf0wkMxVs9ZELKJqLGYJ+g=";
};
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 ];
};
})