Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "zsync"; 5 version = "0.6.2"; 6 7 src = fetchurl { 8 url = "http://zsync.moria.org.uk/download/${pname}-${version}.tar.bz2"; 9 sha256 = "1wjslvfy76szf0mgg2i9y9q30858xyjn6v2acc24zal76d1m778b"; 10 }; 11 12 makeFlags = [ "AR=${stdenv.cc.bintools.targetPrefix}ar" ]; 13 14 meta = with lib; { 15 homepage = "http://zsync.moria.org.uk/"; 16 description = "File distribution system using the rsync algorithm"; 17 license = licenses.free; 18 maintainers = with maintainers; [ viric ]; 19 platforms = with platforms; all; 20 }; 21}