Merge pull request #196014 from lovesegfault/roon-update

This commit is contained in:
Bernardo Meurer 2022-10-28 15:39:27 +01:00 committed by GitHub
commit a2060cd31b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 20 deletions

View file

@ -9,25 +9,23 @@
, stdenv , stdenv
, zlib , zlib
}: }:
stdenv.mkDerivation rec { let
version = "1.8-1125";
urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "0" ] version;
host = stdenv.hostPlatform.system;
system = if host == "x86_64-linux" then "linuxx64"
else if host == "aarch64-linux" then "linuxarmv8"
else throw "Unsupported platform ${host}";
src = fetchurl {
url = "https://download.roonlabs.com/updates/stable/RoonBridge_${system}_${urlVersion}.tar.bz2";
hash = if system == "linuxx64" then "sha256-DbtKPFEz2WIoKTxP+zoehzz+BjfsLZ2ZQk/FMh+zFBM="
else if system == "linuxarmv8" then "sha256-+przEj96R+f1z4ewETFarF4oY6tT2VW/ukSTgUBLiYk="
else throw "Unsupported platform ${host}";
};
in
stdenv.mkDerivation {
pname = "roon-bridge"; pname = "roon-bridge";
version = "1.8-943"; inherit src version;
src =
let
urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version;
inherit (stdenv.targetPlatform) system;
in
{
x86_64-linux = fetchurl {
url = "http://download.roonlabs.com/builds/RoonBridge_linuxx64_${urlVersion}.tar.bz2";
hash = "sha256-knmy2zlRh+ehvYKHC7UN60pMCt8bYPuo9kTz2m0pOW0";
};
aarch64-linux = fetchurl {
url = "http://download.roonlabs.com/builds/RoonBridge_linuxarmv8_${urlVersion}.tar.bz2";
hash = "sha256-urMhtBUjP4HpV9EDZOLLnfnMqhmsWPx0M2+Xdvc8YnU=";
};
}.${system} or (throw "Unsupposed system: ${system}");
dontConfigure = true; dontConfigure = true;
dontBuild = true; dontBuild = true;

View file

@ -15,7 +15,7 @@
, stdenv , stdenv
}: }:
let let
version = "2.0-1128"; version = "2.0-1143";
urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "0" ] version; urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "0" ] version;
in in
stdenv.mkDerivation { stdenv.mkDerivation {
@ -24,7 +24,7 @@ stdenv.mkDerivation {
src = fetchurl { src = fetchurl {
url = "https://download.roonlabs.com/updates/production/RoonServer_linuxx64_${urlVersion}.tar.bz2"; url = "https://download.roonlabs.com/updates/production/RoonServer_linuxx64_${urlVersion}.tar.bz2";
hash = "sha256-PR3LR7u9X6eUAyoAW1tXv3LzqoVz3RQ0MZwdF0iAXJ8="; hash = "sha256-qSqSiqO3SzVmRacbbAphVLp0ablQCjR4Zn2HIQaqSPs=";
}; };
dontConfigure = true; dontConfigure = true;