@@ -15,20 +15,20 @@ stdenv.mkDerivation rec {
1515 pname = "roon-bridge";
1616 version = "1.8-814";
1717
18− # N.B. The URL is unstable. I've asked for them to provide a stable URL but
19− # they have ignored me. If this package fails to build for you, you may need
20− # to update the version and sha256.
21− # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129
22− src = {
23− x86_64-linux = fetchurl {
24− url = "https://web.archive.org/web/20210729154257/http://download.roonlabs.com/builds/RoonBridge_linuxx64.tar.bz2";
25− sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A=";
26− };
27− aarch64-linux = fetchurl {
28− url = "https://web.archive.org/web/20210803071334/http://download.roonlabs.com/builds/RoonBridge_linuxarmv8.tar.bz2";
29− sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U=";
30− };
31− }.${system} or throwSystem;
18+ src =
19+ let
20+ urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version;
21+ in
22+ {
23+ x86_64-linux = fetchurl {
24+ url = "http://download.roonlabs.com/builds/RoonBridge_linuxx64_${urlVersion}.tar.bz2";
25+ sha256 = "sha256-dersaP/8qkl9k81FrgMieB0P4nKmDwjLW5poqKhEn7A=";
26+ };
27+ aarch64-linux = fetchurl {
28+ url = "http://download.roonlabs.com/builds/RoonBridge_linuxarmv8_${urlVersion}.tar.bz2";
29+ sha256 = "sha256-zZj7PkLUYYHo3dngqErv1RqynSXi6/D5VPZWfrppX5U=";
30+ };
31+ }.${system} or throwSystem;
3232
3333 buildInputs = [
3434 alsa-lib
@@ -70,6 +70,6 @@ stdenv.mkDerivation rec {
7070 homepage = "https://roonlabs.com";
7171 license = licenses.unfree;
7272 maintainers = with maintainers; [ lovesegfault ];
73− platforms = platforms.linux;
73+ platforms = [ "aarch64-linux" "x86_64-linux" ];
7474 };
7575}