about summary refs log tree commit diff
path: root/pkgs/applications/audio/reaper/default.nix
diff options
context:
space:
mode:
authorAnderson Torres <torres.anderson.85@protonmail.com>2022-10-09 20:13:54 -0300
committerGitHub <noreply@github.com>2022-10-09 20:13:54 -0300
commit52bbd5121ba37972ed71f821b18290b5d5c1fedd (patch)
treec2d7df907f829646160b92e7e00f4b9ce9119989 /pkgs/applications/audio/reaper/default.nix
parenta0b341d690c341983d19cf2b4b82a9491b041240 (diff)
parentf38a04a4ab5b4c2dbe0cbeb6e16d531f46ffb849 (diff)
Merge pull request #180080 from viraptor/reaper-update
reaper: Add update script
Diffstat (limited to 'pkgs/applications/audio/reaper/default.nix')
-rw-r--r--pkgs/applications/audio/reaper/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/audio/reaper/default.nix b/pkgs/applications/audio/reaper/default.nix
index 28d050d2e4258..6b09e086fa3de 100644
--- a/pkgs/applications/audio/reaper/default.nix
+++ b/pkgs/applications/audio/reaper/default.nix
@@ -17,12 +17,15 @@
 , 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 {
   pname = "reaper";
   version = "6.66";
 
   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 = {
       x86_64-linux = "sha256-kMXHHd+uIc5tKlDlxKjphZsfNMYvvV/4Zx84eRwPGcs=";
       aarch64-linux = "sha256-pB3qj9CJbI5iWBNKNX2niIfHrpSz9+qotX/zKGYDwYo=";
@@ -75,6 +78,8 @@ stdenv.mkDerivation rec {
     runHook postInstall
   '';
 
+  passthru.updateScript = ./updater.sh;
+
   meta = with lib; {
     description = "Digital audio workstation";
     homepage = "https://www.reaper.fm/";