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