@@ -1,25 +1,25 @@
11{ lib, stdenv, fetchurl, ... }:
22
3−let
4− arch = {
5− x86_64-linux = "x64";
6− i686-linux = "i386";
7− aarch64-linux = "arm64";
8− }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
9− libPath = lib.makeLibraryPath [ stdenv.cc.libc ];
10−
11−in stdenv.mkDerivation rec {
3+stdenv.mkDerivation rec {
124 pname = "resilio-sync";
13− version = "2.7.2";
5+ version = "2.7.3";
146
15− src = fetchurl {
16− url = "https://download-cdn.resilio.com/${version}/linux-${arch}/resilio-sync_${arch}.tar.gz";
17− sha256 = {
18− x86_64-linux = "0gar5lzv1v4yqmypwqsjnfb64vffzn8mw9vnjr733fgf1pmr57hf";
19− i686-linux = "1bws7r86h1vysjkhyvp2zk8yvxazmlczvhjlcayldskwq48iyv6w";
20− aarch64-linux = "0j8wk5cf8bcaaqxi8gnqf1mpv8nyfjyr4ibls7jnn2biqq767af2";
21− }.${stdenv.hostPlatform.system};
22− };
7+ src = {
8+ x86_64-linux = fetchurl {
9+ url = "https://download-cdn.resilio.com/${version}/linux-x64/resilio-sync_x64.tar.gz";
10+ sha256 = "sha256-DYQs9KofHkvtlsRQHRLwQHoHwSZkr40Ih0RVAw2xv3M=";
11+ };
12+
13+ i686-linux = fetchurl {
14+ url = "https://download-cdn.resilio.com/${version}/linux-i386/resilio-sync_i386.tar.gz";
15+ sha256 = "sha256-PFKVBs0KthG4tuvooHkAciPhNQP0K8oi2LyoRUs5V7I=";
16+ };
17+
18+ aarch64-linux = fetchurl {
19+ url = "https://download-cdn.resilio.com/${version}/linux-arm64/resilio-sync_arm64.tar.gz";
20+ sha256 = "sha256-o2DlYOBTkFhQMEDJySlVSNlVqLNbBzacyv2oTwxrXto=";
21+ };
22+ }.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
2323
2424 dontStrip = true; # Don't strip, otherwise patching the rpaths breaks
2525 sourceRoot = ".";
@@ -28,7 +28,7 @@ in stdenv.mkDerivation rec {
2828 install -D rslsync "$out/bin/rslsync"
2929 patchelf \
3030 --interpreter "$(< $NIX_CC/nix-support/dynamic-linker)" \
31− --set-rpath ${libPath} "$out/bin/rslsync"
31+ --set-rpath ${lib.makeLibraryPath [ stdenv.cc.libc ]} "$out/bin/rslsync"
3232 '';
3333
3434 meta = with lib; {