2021-05-11 13:07:47 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl }:
|
2019-07-10 20:02:19 +00:00
|
|
|
|
2016-04-28 11:26:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zpaq";
|
2019-07-10 20:02:19 +00:00
|
|
|
version = "7.15";
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2019-07-10 20:02:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zpaq";
|
|
|
|
repo = "zpaq";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0v44rlg9gvwc4ggr2lhcqll8ppal3dk7zsg5bqwcc5lg3ynk2pz4";
|
2013-03-09 12:30:22 +00:00
|
|
|
};
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2021-05-11 13:07:47 +00:00
|
|
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2022-01-09 01:39:13 +00:00
|
|
|
CPPFLAGS = [ "-Dunix" ] ++
|
|
|
|
lib.optional (!stdenv.isi686 && !stdenv.isx86_64) "-DNOJIT";
|
|
|
|
CXXFLAGS = [ "-O3" "-DNDEBUG" ];
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2016-03-18 05:02:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2022-01-09 01:39:13 +00:00
|
|
|
makeFlags = [ "CXX=${stdenv.cc.targetPrefix}c++" ];
|
2016-03-18 05:02:18 +00:00
|
|
|
installFlags = [ "PREFIX=$(out)" ];
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-31 03:50:57 +00:00
|
|
|
description = "Incremental journaling backup utility and archiver";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://mattmahoney.net/dc/zpaq.html";
|
2015-12-31 03:50:57 +00:00
|
|
|
license = licenses.gpl3Plus ;
|
2018-01-16 21:59:13 +00:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-12-31 03:50:57 +00:00
|
|
|
platforms = platforms.linux;
|
2013-03-09 12:30:22 +00:00
|
|
|
};
|
|
|
|
}
|