Update to upstream package

This commit is contained in:
Martin Potier 2022-12-06 11:12:05 +02:00
parent e229824eef
commit 29de604173
No known key found for this signature in database
GPG Key ID: D4DD957DBA4AD89E
1 changed files with 18 additions and 11 deletions

View File

@ -9,21 +9,27 @@
, ffmpeg , ffmpeg
, vlc , vlc
, xdg-utils , xdg-utils
, xdotool
, which , which
, jackSupport ? true, libjack2 , jackSupport ? true
, pulseaudioSupport ? config.pulseaudio or true, libpulseaudio , jackLibrary
, pulseaudioSupport ? config.pulseaudio or true
, libpulseaudio
}: }:
let
url_for_platform = version: arch: "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${arch}.tar.xz";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "reaper"; pname = "reaper";
version = "6.61"; version = "6.66";
src = fetchurl { src = fetchurl {
url = "https://www.reaper.fm/files/${lib.versions.major version}.x/reaper${builtins.replaceStrings ["."] [""] version}_linux_${stdenv.hostPlatform.qemuArch}.tar.xz"; url = url_for_platform version stdenv.hostPlatform.qemuArch;
hash = { hash = {
x86_64-linux = "sha256-Lp2EVky1+ruc86LdMmvhZIisoYl0OxdkVnN3h/u09IQ="; x86_64-linux = "sha256-kMXHHd+uIc5tKlDlxKjphZsfNMYvvV/4Zx84eRwPGcs=";
aarch64-linux = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="; aarch64-linux = "sha256-pB3qj9CJbI5iWBNKNX2niIfHrpSz9+qotX/zKGYDwYo=";
}.${stdenv.hostPlatform.system}; }.${stdenv.hostPlatform.system};
}; };
@ -43,7 +49,7 @@ stdenv.mkDerivation rec {
runtimeDependencies = [ runtimeDependencies = [
gtk3 # libSwell needs libgdk-3.so.0 gtk3 # libSwell needs libgdk-3.so.0
] ]
++ lib.optional jackSupport libjack2 ++ lib.optional jackSupport jackLibrary
++ lib.optional pulseaudioSupport libpulseaudio; ++ lib.optional pulseaudioSupport libpulseaudio;
dontBuild = true; dontBuild = true;
@ -64,9 +70,7 @@ stdenv.mkDerivation rec {
# seem to have an effect for some plugins. # seem to have an effect for some plugins.
# We opt for wrapping the executable with LD_LIBRARY_PATH prefix. # We opt for wrapping the executable with LD_LIBRARY_PATH prefix.
wrapProgram $out/opt/REAPER/reaper \ wrapProgram $out/opt/REAPER/reaper \
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ lame ffmpeg vlc ]}" --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ lame ffmpeg vlc xdotool ]}"
cp -rv ${./jsfx}/* $out/opt/REAPER/InstallData/Effects/
mkdir $out/bin mkdir $out/bin
ln -s $out/opt/REAPER/reaper $out/bin/ ln -s $out/opt/REAPER/reaper $out/bin/
@ -75,11 +79,14 @@ stdenv.mkDerivation rec {
runHook postInstall runHook postInstall
''; '';
passthru.updateScript = ./updater.sh;
meta = with lib; { meta = with lib; {
description = "Digital audio workstation"; description = "Digital audio workstation";
homepage = "https://www.reaper.fm/"; homepage = "https://www.reaper.fm/";
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
license = licenses.unfree; license = licenses.unfree;
platforms = [ "x86_64-linux" "aarch64-linux" ]; platforms = [ "x86_64-linux" "aarch64-linux" ];
maintainers = with maintainers; [ jfrankenau ilian orivej uniquepointer ]; maintainers = with maintainers; [ jfrankenau ilian orivej uniquepointer viraptor ];
}; };
} }