nixpkgs/pkgs/applications/audio/dragonfly-reverb/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

46 lines
1.2 KiB
Nix

{ lib, stdenv, fetchFromGitHub, libjack2, libGL, pkg-config, xorg }:
stdenv.mkDerivation rec {
pname = "dragonfly-reverb";
version = "3.2.10";
src = fetchFromGitHub {
owner = "michaelwillis";
repo = "dragonfly-reverb";
rev = version;
sha256 = "sha256-YXJ4U5J8Za+DlXvp6QduvCHIVC2eRJ3+I/KPihCaIoY=";
fetchSubmodules = true;
};
postPatch = ''
patchShebangs dpf/utils/generate-ttl.sh
'';
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libjack2 xorg.libX11 libGL
];
installPhase = ''
runHook preInstall
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
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/michaelwillis/dragonfly-reverb";
description = "Hall-style reverb based on freeverb3 algorithms";
maintainers = [ maintainers.magnetophon ];
license = licenses.gpl3Plus;
platforms = ["x86_64-linux"];
};
}