From b7c074bff1dc47b6a5c8d29c71c99f1e3ed68aa2 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 13:10:11 +0200 Subject: [PATCH 1/6] redux: add fallback src url --- pkgs/applications/audio/redux/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/redux/default.nix b/pkgs/applications/audio/redux/default.nix index d0a6d9393031..7b64df369bd0 100644 --- a/pkgs/applications/audio/redux/default.nix +++ b/pkgs/applications/audio/redux/default.nix @@ -20,7 +20,10 @@ stdenv.mkDerivation rec { src = if releasePath != null then releasePath else fetchurl { - url = "https://files.renoise.com/demo/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz"; + urls = [ + "https://files.renoise.com/demo/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz" + "https://files.renoise.com/demo/archive/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz" + ]; sha256 = "sha256-wafOeNvVIHc8pOHoNQcCwV8+OwnuevJo1EcRQKRX4YA="; }; From fe1603eb33d854e51f0470ebf9add787cc753f49 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 13:12:04 +0200 Subject: [PATCH 2/6] redux: add update script --- pkgs/applications/audio/redux/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkgs/applications/audio/redux/default.nix b/pkgs/applications/audio/redux/default.nix index 7b64df369bd0..15daf2824257 100644 --- a/pkgs/applications/audio/redux/default.nix +++ b/pkgs/applications/audio/redux/default.nix @@ -1,6 +1,7 @@ { lib , stdenv , fetchurl +, writeScript , libX11 , libXext , alsa-lib @@ -48,6 +49,23 @@ stdenv.mkDerivation rec { runHook postInstall ''; + + passthru.updateScript = writeScript "update-redux" '' + #!/usr/bin/env nix-shell + #!nix-shell -I nixpkgs=./. -i bash -p curl htmlq common-updater-scripts + set -euo pipefail + + new_version="$( + curl 'https://files.renoise.com/demo/' \ + | htmlq a --text \ + | grep -E '^Renoise_Redux_([0-9]+_?)+_Demo_Linux_x86_64\.tar\.gz$' \ + | grep -Eo '[0-9]+(_[0-9]+)*' \ + | head -n1 \ + | tr _ . + )" + update-source-version redux "$new_version" --system="x86_64-linux" + ''; + meta = with lib; { description = "Sample-based instrument, with a powerful phrase sequencer"; homepage = "https://www.renoise.com/products/redux"; From 3fcfb6740211011a9121a9ff2c46256fcb611a68 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 14:07:43 +0200 Subject: [PATCH 3/6] redux: 1.3.2 -> 1.3.5 --- pkgs/applications/audio/redux/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/redux/default.nix b/pkgs/applications/audio/redux/default.nix index 15daf2824257..a21202ebd5ba 100644 --- a/pkgs/applications/audio/redux/default.nix +++ b/pkgs/applications/audio/redux/default.nix @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { pname = "redux"; - version = "1.3.2"; + version = "1.3.5"; src = if releasePath != null then releasePath else fetchurl { @@ -25,7 +25,7 @@ stdenv.mkDerivation rec { "https://files.renoise.com/demo/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz" "https://files.renoise.com/demo/archive/Renoise_Redux_${lib.replaceStrings ["."] ["_"] version}_Demo_Linux_x86_64.tar.gz" ]; - sha256 = "sha256-wafOeNvVIHc8pOHoNQcCwV8+OwnuevJo1EcRQKRX4YA="; + sha256 = "sha256-eznsdLzgdJ7MyWe5WAEg1MHId5VlfyanoZ6+I9nI/0I="; }; nativeBuildInputs = [ From 833b18db03c2d282dafa4932d6896a6e2c39fa2c Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 13:10:37 +0200 Subject: [PATCH 4/6] renoise: add fallback src url --- pkgs/applications/audio/renoise/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index a56d43876fb0..249a6201a275 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -42,8 +42,10 @@ in stdenv.mkDerivation rec { platform = platforms.${stdenv.system} or (throw "unsupported system ${stdenv.hostPlatform.system}"); urlVersion = lib.replaceStrings [ "." ] [ "_" ] version; in fetchurl { - url = - "https://files.renoise.com/demo/Renoise_${urlVersion}_Demo_Linux_${platform.archSuffix}.tar.gz"; + urls = [ + "https://files.renoise.com/demo/Renoise_${urlVersion}_Demo_Linux_${platform.archSuffix}.tar.gz" + "https://files.renoise.com/demo/archive/Renoise_${urlVersion}_Demo_Linux_${platform.archSuffix}.tar.gz" + ]; hash = platform.hash; }; From 886068298f6a318d8bdcc3707972f5b78c56b589 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 13:12:16 +0200 Subject: [PATCH 5/6] renoise: add update script --- pkgs/applications/audio/renoise/default.nix | 22 +++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index 249a6201a275..4f219bb0bd16 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -1,5 +1,6 @@ { lib , stdenv +, writeScript , alsa-lib , fetchurl , libjack2 @@ -105,6 +106,27 @@ in stdenv.mkDerivation rec { --replace Exec=renoise Exec=$out/bin/renoise ''; + passthru.updateScript = writeScript "update-renoise" '' + #!/usr/bin/env nix-shell + #!nix-shell -I nixpkgs=./. -i bash -p curl htmlq common-updater-scripts + set -euo pipefail + + new_version="$( + curl 'https://files.renoise.com/demo/' \ + | htmlq a --text \ + | grep -E '^Renoise_([0-9]+_?)+_Demo_Linux_x86_64\.tar\.gz$' \ + | grep -Eo '[0-9]+(_[0-9]+)*' \ + | head -n1 \ + | tr _ . + )" + hash_x86_64="$(nix-prefetch-url "https://files.renoise.com/demo/Renoise_$(echo "$new_version" | tr . _)_Demo_Linux_x86_64.tar.gz")" + hash_arm64="$( nix-prefetch-url "https://files.renoise.com/demo/Renoise_$(echo "$new_version" | tr . _)_Demo_Linux_arm64.tar.gz")" + sri_x86_64="$(nix --extra-experimental-features nix-command hash to-sri --type sha256 "$hash_x86_64")" + sri_arm64="$( nix --extra-experimental-features nix-command hash to-sri --type sha256 "$hash_arm64")" + update-source-version renoise "$new_version" "$sri_x86_64" --system="x86_64-linux" --ignore-same-version + update-source-version renoise "$new_version" "$sri_arm64" --system="aarch64-linux" --ignore-same-version + ''; + meta = { description = "Modern tracker-based DAW"; homepage = "https://www.renoise.com/"; From 3e25b41f0d0fc0efe4e528fb1121dae620dc98e5 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 2 Aug 2024 14:07:19 +0200 Subject: [PATCH 6/6] renoise: 3.4.3 -> 3.4.4 --- pkgs/applications/audio/renoise/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/audio/renoise/default.nix b/pkgs/applications/audio/renoise/default.nix index 4f219bb0bd16..7e178728c2dd 100644 --- a/pkgs/applications/audio/renoise/default.nix +++ b/pkgs/applications/audio/renoise/default.nix @@ -24,17 +24,17 @@ let platforms = { x86_64-linux = { archSuffix = "x86_64"; - hash = "sha256-Etz6NaeLMysSkcQGC3g+IqUy9QrONCrbkyej63uLflo="; + hash = "sha256-b+YXBVnxu54HfC/tWapcs/ZYzwBOJswYbEbEU3SVNss="; }; aarch64-linux = { archSuffix = "arm64"; - hash = "sha256-PVpgxhJU8RY6QepydqImQnisWBjbrsuW4j49Xot3C6Y="; + hash = "sha256-l54FAtT+Rj4Mv3GuOF0/9WuKdJowgbZDZYo7VCh6Flg="; }; }; in stdenv.mkDerivation rec { pname = "renoise"; - version = "3.4.3"; + version = "3.4.4"; src = if releasePath != null then releasePath