Merge pull request #136762 from magnetophon/ChowTapeModel

Chowtapemodel: unstable-2020-12-12 -> 2.10.0
This commit is contained in:
Guillaume Girol 2021-12-27 07:54:11 +00:00 committed by GitHub
commit 81adbf2316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,68 +1,76 @@
{ alsa-lib { alsa-lib, at-spi2-core, cmake, curl, dbus, libepoxy, fetchFromGitHub, freeglut
, curl , freetype, gcc-unwrapped, gtk3, lib, libGL, libXcursor, libXdmcp, libXext
, fetchFromGitHub , libXinerama, libXrandr, libXtst, libdatrie, libjack2, libpsl, libselinux
, freeglut , libsepol, libsysprof-capture, libthai, libxkbcommon, lv2, pcre, pkg-config
, freetype , python3, sqlite, stdenv }:
, libGL
, libXcursor
, libXext
, libXinerama
, libXrandr
, libjack2
, pkg-config
, python3
, stdenv
, lib
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "CHOWTapeModel"; pname = "CHOWTapeModel";
version = "unstable-2020-12-12"; version = "2.10.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jatinchowdhury18"; owner = "jatinchowdhury18";
repo = "AnalogTapeModel"; repo = "AnalogTapeModel";
rev = "a7cf10c3f790d306ce5743bb731e4bc2c1230d70"; rev = "v${version}";
sha256 = "09nq8x2dwabncbp039dqm1brzcz55zg9kpxd4p5348xlaz5m4661"; sha256 = "sha256-iuT7OBRBtMkjcTHayCcne1mNqkcxzKnEYl62n65V7Z4=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [ pkg-config cmake ];
pkg-config
];
buildInputs = [ buildInputs = [
alsa-lib alsa-lib
at-spi2-core
curl curl
dbus
libepoxy
freeglut freeglut
freetype freetype
gtk3
libGL libGL
libXcursor libXcursor
libXdmcp
libXext libXext
libXinerama libXinerama
libXrandr libXrandr
libXtst
libdatrie
libjack2 libjack2
libpsl
libselinux
libsepol
libsysprof-capture
libthai
libxkbcommon
lv2
pcre
python3 python3
sqlite
gcc-unwrapped
]; ];
buildPhase = '' cmakeFlags = [
cd Plugin/ "-DCMAKE_AR=${gcc-unwrapped}/bin/gcc-ar"
./build_linux.sh "-DCMAKE_RANLIB=${gcc-unwrapped}/bin/gcc-ranlib"
''; "-DCMAKE_NM=${gcc-unwrapped}/bin/gcc-nm"
];
postPatch = "cd Plugin";
installPhase = '' installPhase = ''
mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/CHOWTapeModel/ mkdir -p $out/lib/lv2 $out/lib/vst3 $out/bin $out/share/doc/CHOWTapeModel/
cd Builds/LinuxMakefile/build/ cd CHOWTapeModel_artefacts/Release
cp CHOWTapeModel.a $out/lib cp libCHOWTapeModel_SharedCode.a $out/lib
cp -r CHOWTapeModel.lv2 $out/lib/lv2 cp -r LV2/CHOWTapeModel.lv2 $out/lib/lv2
cp -r CHOWTapeModel.vst3 $out/lib/vst3 cp -r VST3/CHOWTapeModel.vst3 $out/lib/vst3
cp CHOWTapeModel $out/bin cp Standalone/CHOWTapeModel $out/bin
cp ../../../../Manual/ChowTapeManual.pdf $out/share/doc/CHOWTapeModel/ cp ../../../../Manual/ChowTapeManual.pdf $out/share/doc/CHOWTapeModel/
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://github.com/jatinchowdhury18/AnalogTapeModel"; homepage = "https://github.com/jatinchowdhury18/AnalogTapeModel";
description = "Physical modelling signal processing for analog tape recording. LV2, VST3 and standalone"; description =
"Physical modelling signal processing for analog tape recording. LV2, VST3 and standalone";
license = with licenses; [ gpl3Only ]; license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ magnetophon ]; maintainers = with maintainers; [ magnetophon ];
platforms = platforms.linux; platforms = platforms.linux;