git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #139664 from lovesegfault/roon-stable-urls

roon-{bridge,server}: use stable src urls

commit73086069ebd402e85eaa39c06aef33c2b917f532 authorBernardo Meurer <bernardo@meurer.org> dateTue 28 Sep 2021, 19:04 (5 years ago) parentf68d7401ac46a0
2 files changed+26−25
pkgs/servers/roon-bridge/default.nix+15−15 pkgs/servers/roon-server/default.nix+11−10
pkgs/servers/roon-bridge/default.nix+15−15
@@ -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}
pkgs/servers/roon-server/default.nix+11−10
@@ -9,18 +9,19 @@
99, makeWrapper
1010, stdenv
1111, zlib
12−}: stdenv.mkDerivation rec {
12+}:
13+stdenv.mkDerivation rec {
1314 pname = "roon-server";
1415 version = "1.8-831";
1516
16− # N.B. The URL is unstable. I've asked for them to provide a stable URL but
17− # they have ignored me. If this package fails to build for you, you may need
18− # to update the version and sha256.
19− # c.f. https://community.roonlabs.com/t/latest-roon-server-is-not-available-for-download-on-nixos/118129
20− src = fetchurl {
21− url = "https://web.archive.org/web/20210921161727/http://download.roonlabs.com/builds/RoonServer_linuxx64.tar.bz2";
22− sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk=";
23− };
17+ src =
18+ let
19+ urlVersion = builtins.replaceStrings [ "." "-" ] [ "00" "00" ] version;
20+ in
21+ fetchurl {
22+ url = "http://download.roonlabs.com/builds/RoonServer_linuxx64_${urlVersion}.tar.bz2";
23+ sha256 = "sha256-SeMSC7K6DV7rVr1w/SqMnLvipoWbypS/gJnSZmpfXZk=";
24+ };
2425
2526 buildInputs = [
2627 alsa-lib
@@ -68,6 +69,6 @@
6869 homepage = "https://roonlabs.com";
6970 license = licenses.unfree;
7071 maintainers = with maintainers; [ lovesegfault steell ];
71− platforms = platforms.linux;
72+ platforms = [ "x86_64-linux" ];
7273 };
7374}