2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alsa-lib
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, cmake
|
|
|
|
, fftwSinglePrec
|
|
|
|
, fltk
|
|
|
|
, libGLU
|
|
|
|
, libjack2
|
|
|
|
, libsndfile
|
|
|
|
, libXdmcp
|
|
|
|
, lv2
|
|
|
|
, minixml
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, xorg
|
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "yoshimi";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.3.2";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yoshimi";
|
|
|
|
repo = pname;
|
2022-03-05 16:20:37 +00:00
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-UaZjT7B9T3a3W9PD9abA/WPmt9Id8/zUUSZU05+8x9c=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/src";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Misc/Config.cpp --replace /usr $out
|
|
|
|
substituteInPlace Misc/Bank.cpp --replace /usr $out
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
fftwSinglePrec
|
|
|
|
fltk
|
|
|
|
libGLU
|
|
|
|
libjack2
|
|
|
|
libsndfile
|
|
|
|
libXdmcp
|
|
|
|
lv2
|
|
|
|
minixml
|
|
|
|
pcre
|
|
|
|
readline
|
|
|
|
xorg.libpthreadstubs
|
|
|
|
zlib
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.cc.libc}/lib/libm.so" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "High quality software synthesizer based on ZynAddSubFX";
|
|
|
|
longDescription = ''
|
|
|
|
Yoshimi delivers the same synthesizer capabilities as
|
|
|
|
ZynAddSubFX along with very good Jack and Alsa midi/audio
|
|
|
|
functionality on Linux
|
|
|
|
'';
|
2022-03-05 16:20:37 +00:00
|
|
|
homepage = "https://yoshimi.github.io/";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "yoshimi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|