1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
8 url = "http://zsync.moria.org.uk/download/zsync-${version}.tar.bz2";
9 hash = "sha256-C51TQzOHqk8EY0psY6XvqCAwcPIpivcqcF+b492mWvI=";
12 env = lib.optionalAttrs stdenv.cc.isClang {
13 # Suppress error "call to undeclared library function 'strcasecmp'" during compilation.
14 # The function is found by the linker correctly, so this doesn't introduce any issues.
15 NIX_CFLAGS_COMPILE = " -Wno-implicit-function-declaration";
18 makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
21 homepage = "http://zsync.moria.org.uk/";
22 description = "File distribution system using the rsync algorithm";
23 license = licenses.artistic2;
24 maintainers = with maintainers; [ viric ];
25 platforms = with platforms; all;