mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
redux: add update script
This commit is contained in:
parent
b7c074bff1
commit
fe1603eb33
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user