2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchzip, cmake, pkg-config, lv2, alsa-lib, libjack2,
|
2020-04-24 23:36:52 +00:00
|
|
|
freetype, libX11, gtk3, pcre, libpthreadstubs, libXdmcp, libxkbcommon,
|
|
|
|
epoxy, at-spi2-core, dbus, curl, fftwFloat }:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "HybridReverb2";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "2.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
owner = "jpcima";
|
|
|
|
DBversion = "1.0.0";
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
impulseDB = fetchzip {
|
|
|
|
url = "https://github.com/${owner}/${pname}-impulse-response-database/archive/v${DBversion}.zip";
|
|
|
|
sha256 = "1hlfxbbkahm1k2sk3c3n2mjaz7k80ky3r55xil8nfbvbv0qan89z";
|
|
|
|
};
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
inherit owner;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "16r20plz1w068bgbkrydv01a991ygjybdya3ah7bhp3m5xafjwqb";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ lv2 alsa-lib libjack2 freetype libX11 gtk3 pcre
|
2020-04-24 23:36:52 +00:00
|
|
|
libpthreadstubs libXdmcp libxkbcommon epoxy at-spi2-core dbus curl fftwFloat ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DHybridReverb2_AdvancedJackStandalone=ON"
|
|
|
|
"-DHybridReverb2_UseLocalDatabase=ON"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/${pname}/
|
|
|
|
cp -r ${impulseDB}/* $out/share/${pname}/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www2.ika.ruhr-uni-bochum.de/HybridReverb2";
|
|
|
|
description = "Reverb effect using hybrid impulse convolution";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|