Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl }: 2 3stdenv.mkDerivation rec { 4 pname = "zdelta"; 5 version = "2.1"; 6 7 src = fetchurl { 8 url = "https://web.archive.org/web/20160316212948/http://cis.poly.edu/zdelta/downloads/zdelta-2.1.tar.gz"; 9 sha256 = "sha256-WiQKWxJkINIwRBcdiuVLMDiupQ8gOsiXOEZvHDa5iFg="; 10 }; 11 12 makeFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ]; 13 14 installPhase = '' 15 mkdir -p $out/bin 16 cp -p zdc zdu $out/bin 17 ''; 18 19 meta = with lib; { 20 homepage = "https://web.archive.org/web/20160316212948/http://cis.poly.edu/zdelta/"; 21 platforms = platforms.all; 22 license = licenses.zlib; 23 }; 24}