2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "zpaq";
|
|
|
|
version = "7.15";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zpaq";
|
|
|
|
repo = "zpaq";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0v44rlg9gvwc4ggr2lhcqll8ppal3dk7zsg5bqwcc5lg3ynk2pz4";
|
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
CPPFLAGS = [ "-Dunix" ] ++
|
|
|
|
lib.optional (!stdenv.isi686 && !stdenv.isx86_64) "-DNOJIT";
|
|
|
|
CXXFLAGS = [ "-O3" "-DNDEBUG" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Incremental journaling backup utility and archiver";
|
|
|
|
homepage = "http://mattmahoney.net/dc/zpaq.html";
|
|
|
|
license = licenses.gpl3Plus ;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2024-01-02 11:29:13 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
mainProgram = "zpaq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|