1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00
nixpkgs/pkgs/applications/audio/dragonfly-reverb/default.nix
2020-04-10 17:54:53 +01:00

44 lines
1.1 KiB
Nix

{ stdenv, fetchFromGitHub, libjack2, libGL, pkgconfig, xorg }:
stdenv.mkDerivation rec {
pname = "dragonfly-reverb";
version = "3.0.0";
src = fetchFromGitHub {
owner = "michaelwillis";
repo = "dragonfly-reverb";
rev = version;
sha256 = "1z2x33lzpd26dv1p29ca7vy8mjfzkfpin35iq46spwd9k3sqn1ja";
fetchSubmodules = true;
};
patchPhase = ''
patchShebangs dpf/utils/generate-ttl.sh
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
libjack2 xorg.libX11 libGL
];
installPhase = ''
mkdir -p $out/bin
mkdir -p $out/lib/lv2/
mkdir -p $out/lib/vst/
cd bin
for bin in DragonflyEarlyReflections DragonflyPlateReverb DragonflyHallReverb DragonflyRoomReverb; do
cp -a $bin $out/bin/
cp -a $bin-vst.so $out/lib/vst/
cp -a $bin.lv2/ $out/lib/lv2/ ;
done
'';
meta = with stdenv.lib; {
homepage = "https://github.com/michaelwillis/dragonfly-reverb";
description = "A hall-style reverb based on freeverb3 algorithms";
maintainers = [ maintainers.magnetophon ];
license = licenses.gpl3;
platforms = ["x86_64-linux"];
};
}