1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5}:
6
7stdenv.mkDerivation rec {
8 pname = "clap";
9 version = "1.1.10";
10
11 src = fetchFromGitHub {
12 owner = "free-audio";
13 repo = "clap";
14 rev = version;
15 hash = "sha256-AH3kSCp4Q8Nw3To2vuPuMH/cWm3cmzj2OEH/Azcbdmo=";
16 };
17
18 postPatch = ''
19 substituteInPlace clap.pc.in \
20 --replace '$'"{prefix}/@CMAKE_INSTALL_INCLUDEDIR@" '@CMAKE_INSTALL_FULL_INCLUDEDIR@'
21 '';
22
23 nativeBuildInputs = [ cmake ];
24
25 meta = with lib; {
26 description = "Clever Audio Plugin API interface headers";
27 homepage = "https://cleveraudio.org/";
28 license = licenses.mit;
29 platforms = platforms.all;
30 maintainers = with maintainers; [ ris ];
31 };
32}