forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / zs / zsync / package.nix
blobe925d1c8419b4f272cdf08ea44cdc159569a6775
1 { lib, stdenv, fetchurl }:
3 stdenv.mkDerivation rec {
4   pname = "zsync";
5   version = "0.6.2";
7   src = fetchurl {
8     url = "http://zsync.moria.org.uk/download/zsync-${version}.tar.bz2";
9     hash = "sha256-C51TQzOHqk8EY0psY6XvqCAwcPIpivcqcF+b492mWvI=";
10   };
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";
16   };
18   makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ];
20   meta = with lib; {
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;
26   };