2021-01-19 07:50:56 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libjack2, libGL, pkg-config, xorg }:
|
2018-04-11 21:54:05 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-26 23:40:50 +02:00
|
|
|
pname = "dragonfly-reverb";
|
2021-05-09 06:33:14 +02:00
|
|
|
version = "3.2.5";
|
2018-04-11 21:54:05 +02:00
|
|
|
|
2018-10-23 12:42:01 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "michaelwillis";
|
|
|
|
repo = "dragonfly-reverb";
|
2019-04-26 23:40:50 +02:00
|
|
|
rev = version;
|
2021-05-09 06:33:14 +02:00
|
|
|
sha256 = "14kia9wjs0nqfx4psnr3vf4x6hihkf80gb0mjzmdnnnk4cnrdydm";
|
2018-10-23 12:42:01 +02:00
|
|
|
fetchSubmodules = true;
|
2018-04-11 21:54:05 +02:00
|
|
|
};
|
|
|
|
|
2021-05-09 06:33:14 +02:00
|
|
|
postPatch = ''
|
2018-04-11 21:54:05 +02:00
|
|
|
patchShebangs dpf/utils/generate-ttl.sh
|
|
|
|
'';
|
|
|
|
|
2021-01-19 07:50:56 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-04-11 21:54:05 +02:00
|
|
|
buildInputs = [
|
|
|
|
libjack2 xorg.libX11 libGL
|
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
2021-05-09 06:33:14 +02:00
|
|
|
runHook preInstall
|
2019-04-26 23:40:50 +02:00
|
|
|
mkdir -p $out/bin
|
2018-04-11 21:54:05 +02:00
|
|
|
mkdir -p $out/lib/lv2/
|
2019-04-26 23:40:50 +02:00
|
|
|
mkdir -p $out/lib/vst/
|
|
|
|
cd bin
|
2020-03-03 04:33:39 +01:00
|
|
|
for bin in DragonflyEarlyReflections DragonflyPlateReverb DragonflyHallReverb DragonflyRoomReverb; do
|
2019-07-19 17:42:22 +02:00
|
|
|
cp -a $bin $out/bin/
|
|
|
|
cp -a $bin-vst.so $out/lib/vst/
|
|
|
|
cp -a $bin.lv2/ $out/lib/lv2/ ;
|
|
|
|
done
|
2021-05-09 06:33:14 +02:00
|
|
|
runHook postInstall
|
2018-04-11 21:54:05 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/michaelwillis/dragonfly-reverb";
|
2018-04-11 21:54:05 +02:00
|
|
|
description = "A hall-style reverb based on freeverb3 algorithms";
|
|
|
|
maintainers = [ maintainers.magnetophon ];
|
2021-05-09 06:33:14 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2018-04-11 21:54:05 +02:00
|
|
|
platforms = ["x86_64-linux"];
|
|
|
|
};
|
|
|
|
}
|