2021-12-30 13:39:12 +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 19:44:15 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "CHOWTapeModel";
|
2021-12-30 13:39:12 +00:00
|
|
|
version = "2.10.0";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jatinchowdhury18";
|
|
|
|
repo = "AnalogTapeModel";
|
2021-12-30 13:39:12 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-iuT7OBRBtMkjcTHayCcne1mNqkcxzKnEYl62n65V7Z4=";
|
2021-04-13 19:44:15 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
alsa-lib
|
2021-12-30 13:39:12 +00:00
|
|
|
at-spi2-core
|
2021-04-13 19:44:15 +00:00
|
|
|
curl
|
2021-12-30 13:39:12 +00:00
|
|
|
dbus
|
|
|
|
libepoxy
|
2021-04-13 19:44:15 +00:00
|
|
|
freeglut
|
|
|
|
freetype
|
2021-12-30 13:39:12 +00:00
|
|
|
gtk3
|
2021-04-13 19:44:15 +00:00
|
|
|
libGL
|
|
|
|
libXcursor
|
2021-12-30 13:39:12 +00:00
|
|
|
libXdmcp
|
2021-04-13 19:44:15 +00:00
|
|
|
libXext
|
|
|
|
libXinerama
|
|
|
|
libXrandr
|
2021-12-30 13:39:12 +00:00
|
|
|
libXtst
|
|
|
|
libdatrie
|
2021-04-13 19:44:15 +00:00
|
|
|
libjack2
|
2021-12-30 13:39:12 +00:00
|
|
|
libpsl
|
|
|
|
libselinux
|
|
|
|
libsepol
|
|
|
|
libsysprof-capture
|
|
|
|
libthai
|
|
|
|
libxkbcommon
|
|
|
|
lv2
|
|
|
|
pcre
|
2021-04-13 19:44:15 +00:00
|
|
|
python3
|
2021-12-30 13:39:12 +00:00
|
|
|
sqlite
|
|
|
|
gcc-unwrapped
|
2021-04-13 19:44:15 +00:00
|
|
|
];
|
|
|
|
|
2021-12-30 13:39:12 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
|
|
|
|
"-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
|
|
|
|
"-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = "cd Plugin";
|
2021-04-13 19:44:15 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/CHOWTapeModel/
|
2021-12-30 13:39:12 +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 19:44:15 +00:00
|
|
|
cp ../../../../Manual/ChowTapeManual.pdf $out/share/doc/CHOWTapeModel/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/jatinchowdhury18/AnalogTapeModel";
|
2021-12-30 13:39:12 +00:00
|
|
|
description =
|
|
|
|
"Physical modelling signal processing for analog tape recording. LV2, VST3 and standalone";
|
2021-04-13 19:44:15 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|