diff --git a/pkgs/servers/roon-bridge/default.nix b/pkgs/servers/roon-bridge/default.nix index 74851446c999..14161b5d5a3f 100644 --- a/pkgs/servers/roon-bridge/default.nix +++ b/pkgs/servers/roon-bridge/default.nix @@ -15,20 +15,20 @@ stdenv.mkDerivation rec { pname = "roon-bridge"; version = "1.8-814"; - # N.B. The URL is unstable. I've asked for them to provide a stable URL but - # they have ignored me. If this package fails to build for you, you may need - # to update the version and sha256. - # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129 - src = { - x86_64-linux = fetchurl { - url = "https://web.archive.org/web/20210729154257/http://download.roonlabs.com/builds/RoonBridge_linuxx64.tar.bz2"; - sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A="; - }; - aarch64-linux = fetchurl { - url = "https://web.archive.org/web/20210803071334/http://download.roonlabs.com/builds/RoonBridge_linuxarmv8.tar.bz2"; - sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U="; - }; - }.${system} or throwSystem; + src = + let + urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version; + in + { + x86_64-linux = fetchurl { + url = "http://download.roonlabs.com/builds/RoonBridge_linuxx64_${urlVersion}.tar.bz2"; + sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A="; + }; + aarch64-linux = fetchurl { + url = "http://download.roonlabs.com/builds/RoonBridge_linuxarmv8_${urlVersion}.tar.bz2"; + sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U="; + }; + }.${system} or throwSystem; buildInputs = [ alsa-lib @@ -70,6 +70,6 @@ stdenv.mkDerivation rec { homepage = "https://roonlabs.com"; license = licenses.unfree; maintainers = with maintainers; [ lovesegfault ]; - platforms = platforms.linux; + platforms = [ "aarch64-linux" "x86_64-linux" ]; }; } diff --git a/pkgs/servers/roon-server/default.nix b/pkgs/servers/roon-server/default.nix index b657f1b957fa..d97a5df42e19 100644 --- a/pkgs/servers/roon-server/default.nix +++ b/pkgs/servers/roon-server/default.nix @@ -9,18 +9,19 @@ , makeWrapper , stdenv , zlib -}: stdenv.mkDerivation rec { +}: +stdenv.mkDerivation rec { pname = "roon-server"; version = "1.8-831"; - # N.B. The URL is unstable. I've asked for them to provide a stable URL but - # they have ignored me. If this package fails to build for you, you may need - # to update the version and sha256. - # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129 - src = fetchurl { - url = "https://web.archive.org/web/20210921161727/http://download.roonlabs.com/builds/RoonServer_linuxx64.tar.bz2"; - sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk="; - }; + src = + let + urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version; + in + fetchurl { + url = "http://download.roonlabs.com/builds/RoonServer_linuxx64_${urlVersion}.tar.bz2"; + sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk="; + }; buildInputs = [ alsa-lib @@ -68,6 +69,6 @@ homepage = "https://roonlabs.com"; license = licenses.unfree; maintainers = with maintainers; [ lovesegfault steell ]; - platforms = platforms.linux; + platforms = [ "x86_64-linux" ]; }; }