diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/clap')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/clap/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/clap/default.nix b/nixpkgs/pkgs/development/libraries/clap/default.nix new file mode 100644 index 000000000000..dd4d410bb874 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/clap/default.nix @@ -0,0 +1,32 @@ +{ lib +, stdenv +, fetchFromGitHub +, cmake +}: + +stdenv.mkDerivation rec { + pname = "clap"; + version = "1.1.9"; + + src = fetchFromGitHub { + owner = "free-audio"; + repo = "clap"; + rev = version; + hash = "sha256-z2P0U2NkDK1/5oDV35jn/pTXCcspuM1y2RgZyYVVO3w="; + }; + + 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 ]; + }; +} |