2023-09-06 04:28:12 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
|
|
|
|
# Native build inputs
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, makeWrapper
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
, alsa-lib
|
|
|
|
, freetype
|
|
|
|
, curl
|
|
|
|
, libglvnd
|
|
|
|
, webkitgtk
|
|
|
|
, pcre
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "juce";
|
2023-12-13 19:49:33 +01:00
|
|
|
version = "7.0.9";
|
2023-09-06 04:28:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "juce-framework";
|
|
|
|
repo = "juce";
|
|
|
|
rev = finalAttrs.version;
|
2023-12-13 19:49:33 +01:00
|
|
|
hash = "sha256-k8cNTPH9OgOav4dsSLqrd5PlJ1rqO0PLt6Lwmumc2Gg=";
|
2023-09-06 04:28:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "juce-6.1.2-cmake_install.patch";
|
|
|
|
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/juce/-/raw/4e6d34034b102af3cd762a983cff5dfc09e44e91/juce-6.1.2-cmake_install.patch";
|
|
|
|
hash = "sha256-fr2K/dH0Zam5QKS63zos7eq9QLwdr+bvQL5ZxScagVU=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
makeWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freetype # libfreetype.so
|
|
|
|
curl # libcurl.so
|
|
|
|
stdenv.cc.cc.lib # libstdc++.so libgcc_s.so
|
|
|
|
pcre # libpcre2.pc
|
|
|
|
] ++ lib.optionals stdenv.isLinux [
|
|
|
|
alsa-lib # libasound.so
|
|
|
|
libglvnd # libGL.so
|
|
|
|
webkitgtk # webkit2gtk-4.0
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-10-25 20:42:09 +02:00
|
|
|
darwin.apple_sdk.frameworks.Cocoa
|
|
|
|
darwin.apple_sdk.frameworks.MetalKit
|
|
|
|
darwin.apple_sdk.frameworks.WebKit
|
2023-09-06 04:28:12 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cross-platform C++ application framework";
|
|
|
|
longDescription = "JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, RTAS and AAX audio plug-ins";
|
|
|
|
homepage = "https://github.com/juce-framework/JUCE";
|
|
|
|
license = with licenses; [ isc gpl3Plus ];
|
|
|
|
maintainers = with maintainers; [ kashw2 ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
})
|