2021-09-05 07:07:13 +00:00
{ alsa-lib , at-spi2-core , cmake , curl , dbus , libepoxy , fetchFromGitHub , freeglut
, freetype , gcc-unwrapped , gtk3 , lib , libGL , libXcursor , libXdmcp , libXext
, libXinerama , libXrandr , libXtst , libdatrie , libjack2 , libpsl , libselinux
, libsepol , libsysprof-capture , libthai , libxkbcommon , lv2 , pcre , pkg-config
, python3 , sqlite , stdenv } :
2021-04-13 17:25:12 +00:00
stdenv . mkDerivation rec {
pname = " C H O W T a p e M o d e l " ;
2021-09-05 07:07:13 +00:00
version = " 2 . 1 0 . 0 " ;
2021-04-13 17:25:12 +00:00
src = fetchFromGitHub {
owner = " j a t i n c h o w d h u r y 1 8 " ;
repo = " A n a l o g T a p e M o d e l " ;
2021-09-05 07:07:13 +00:00
rev = " v ${ version } " ;
sha256 = " s h a 2 5 6 - i u T 7 O B R B t M k j c T H a y C c n e 1 m N q k c x z K n E Y l 6 2 n 6 5 V 7 Z 4 = " ;
2021-04-13 17:25:12 +00:00
fetchSubmodules = true ;
} ;
2021-09-05 07:07:13 +00:00
nativeBuildInputs = [ pkg-config cmake ] ;
2021-04-13 17:25:12 +00:00
buildInputs = [
2021-06-10 02:57:09 +00:00
alsa-lib
2021-09-05 07:07:13 +00:00
at-spi2-core
2021-04-13 17:25:12 +00:00
curl
2021-09-05 07:07:13 +00:00
dbus
libepoxy
2021-04-13 17:25:12 +00:00
freeglut
freetype
2021-09-05 07:07:13 +00:00
gtk3
2021-04-13 17:25:12 +00:00
libGL
libXcursor
2021-09-05 07:07:13 +00:00
libXdmcp
2021-04-13 17:25:12 +00:00
libXext
libXinerama
libXrandr
2021-09-05 07:07:13 +00:00
libXtst
libdatrie
2021-04-13 17:25:12 +00:00
libjack2
2021-09-05 07:07:13 +00:00
libpsl
libselinux
libsepol
libsysprof-capture
libthai
libxkbcommon
lv2
pcre
2021-04-13 17:25:12 +00:00
python3
2021-09-05 07:07:13 +00:00
sqlite
gcc-unwrapped
2021-04-13 17:25:12 +00:00
] ;
2021-09-05 07:07:13 +00:00
cmakeFlags = [
" - D C M A K E _ A R = ${ gcc-unwrapped } / b i n / g c c - a r "
" - D C M A K E _ R A N L I B = ${ gcc-unwrapped } / b i n / g c c - r a n l i b "
" - D C M A K E _ N M = ${ gcc-unwrapped } / b i n / g c c - n m "
] ;
postPatch = " c d P l u g i n " ;
2021-04-13 17:25:12 +00:00
installPhase = ''
mkdir - p $ out/lib/lv2 $ out/lib/vst3 $ out/bin $ out/share/doc/CHOWTapeModel /
2021-09-05 07:07:13 +00:00
cd CHOWTapeModel_artefacts/Release
cp libCHOWTapeModel_SharedCode . a $ out/lib
cp - r LV2/CHOWTapeModel.lv2 $ out/lib/lv2
cp - r VST3/CHOWTapeModel.vst3 $ out/lib/vst3
cp Standalone/CHOWTapeModel $ out/bin
2021-04-13 17:25:12 +00:00
cp ../../../../Manual/ChowTapeManual.pdf $ out/share/doc/CHOWTapeModel /
'' ;
meta = with lib ; {
homepage = " h t t p s : / / g i t h u b . c o m / j a t i n c h o w d h u r y 1 8 / A n a l o g T a p e M o d e l " ;
2021-09-05 07:07:13 +00:00
description =
" P h y s i c a l m o d e l l i n g s i g n a l p r o c e s s i n g f o r a n a l o g t a p e r e c o r d i n g . L V 2 , V S T 3 a n d s t a n d a l o n e " ;
2021-04-13 17:25:12 +00:00
license = with licenses ; [ gpl3Only ] ;
maintainers = with maintainers ; [ magnetophon ] ;
platforms = platforms . linux ;
2022-05-19 19:09:42 +00:00
# error: 'vvtanh' was not declared in this scope; did you mean 'tanh'?
# error: no matching function for call to 'juce::dsp::SIMDRegister<double>::SIMDRegister(xsimd::simd_batch_traits<xsimd::batch<double, 2> >::batch_bool_type)'
broken = stdenv . isAarch64 ; # since 2021-12-27 on hydra (update to 2.10): https://hydra.nixos.org/build/162558991
2021-04-13 17:25:12 +00:00
} ;
}