33 lines
695 B
Nix
33 lines
695 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clap";
|
|
version = "1.1.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "free-audio";
|
|
repo = "clap";
|
|
rev = version;
|
|
hash = "sha256-UY6HSth3xuXVfiKolttpYf19rZ2c/X1FXHV7TA/hAiM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace clap.pc.in \
|
|
--replace '$'"{prefix}/@CMAKE_INSTALL_INCLUDEDIR@" '@CMAKE_INSTALL_FULL_INCLUDEDIR@'
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
meta = with lib; {
|
|
description = "Clever Audio Plugin API interface headers";
|
|
homepage = "https://cleveraudio.org/";
|
|
license = licenses.mit;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ris ];
|
|
};
|
|
}
|