1 { lib, stdenv, fetchFromGitHub, perl }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0v44rlg9gvwc4ggr2lhcqll8ppal3dk7zsg5bqwcc5lg3ynk2pz4";
14 nativeBuildInputs = [ perl /* for pod2man */ ];
16 CPPFLAGS = [ "-Dunix" ] ++
17 lib.optional (!stdenv.hostPlatform.isi686 && !stdenv.hostPlatform.isx86_64) "-DNOJIT";
18 CXXFLAGS = [ "-O3" "-DNDEBUG" ];
20 enableParallelBuilding = true;
22 makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
23 installFlags = [ "PREFIX=$(out)" ];
26 description = "Incremental journaling backup utility and archiver";
27 homepage = "http://mattmahoney.net/dc/zpaq.html";
28 license = licenses.gpl3Plus ;
29 maintainers = with maintainers; [ raskin ];
30 platforms = platforms.unix;