2022-02-24 20:21:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, alsa-lib
|
|
|
|
, boost
|
|
|
|
, cairo
|
|
|
|
, cmake
|
|
|
|
, fftwSinglePrec
|
|
|
|
, fltk
|
|
|
|
, libGLU
|
|
|
|
, libjack2
|
|
|
|
, libsndfile
|
|
|
|
, libXdmcp
|
|
|
|
, lv2
|
|
|
|
, minixml
|
|
|
|
, pcre
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, xorg
|
|
|
|
, zlib
|
2014-01-19 11:31:16 +00:00
|
|
|
}:
|
2011-05-04 12:52:46 +00:00
|
|
|
|
2022-02-24 20:21:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "yoshimi";
|
2023-06-23 23:22:35 +00:00
|
|
|
version = "2.3.0.2";
|
2020-06-05 12:16:48 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Yoshimi";
|
|
|
|
repo = pname;
|
2022-02-24 20:21:07 +00:00
|
|
|
rev = version;
|
2023-06-23 23:22:35 +00:00
|
|
|
hash = "sha256-zFwfKy8CVecGhgr48T+eDNHfMdctfrNGenc/XJctyw8=";
|
2011-04-23 13:54:25 +00:00
|
|
|
};
|
2014-01-19 11:31:16 +00:00
|
|
|
|
2022-02-24 20:21:07 +00:00
|
|
|
sourceRoot = "source/src";
|
2011-04-23 13:54:25 +00:00
|
|
|
|
2022-02-24 20:21:07 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Misc/Config.cpp --replace /usr $out
|
|
|
|
substituteInPlace Misc/Bank.cpp --replace /usr $out
|
2017-03-01 17:37:45 +00:00
|
|
|
'';
|
|
|
|
|
2022-02-24 20:21:07 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
alsa-lib
|
|
|
|
boost
|
|
|
|
cairo
|
|
|
|
fftwSinglePrec
|
|
|
|
fltk
|
|
|
|
libGLU
|
|
|
|
libjack2
|
|
|
|
libsndfile
|
|
|
|
libXdmcp
|
|
|
|
lv2
|
|
|
|
minixml
|
|
|
|
pcre
|
|
|
|
readline
|
|
|
|
xorg.libpthreadstubs
|
|
|
|
zlib
|
|
|
|
];
|
2012-01-03 10:32:56 +00:00
|
|
|
|
2022-05-10 21:52:26 +00:00
|
|
|
cmakeFlags = [ "-DFLTK_MATH_LIBRARY=${stdenv.cc.libc}/lib/libm.so" ];
|
2011-04-23 13:54:25 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "High quality software synthesizer based on ZynAddSubFX";
|
2011-04-23 13:54:25 +00:00
|
|
|
longDescription = ''
|
|
|
|
Yoshimi delivers the same synthesizer capabilities as
|
|
|
|
ZynAddSubFX along with very good Jack and Alsa midi/audio
|
|
|
|
functionality on Linux
|
|
|
|
'';
|
2022-02-24 20:21:07 +00:00
|
|
|
homepage = "https://yoshimi.github.io/";
|
|
|
|
license = licenses.gpl2Plus;
|
2011-04-23 13:54:25 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
|
|
|
};
|
|
|
|
}
|