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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "2.3.1";
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yoshimi";
|
|
|
|
repo = pname;
|
2022-03-05 16:20:37 +00:00
|
|
|
rev = version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-NMgy/ucuSRFX2zlO8GhL4QSP4NZo1QKZJYTc2eXzWUA=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|