2021-05-11 14:07:47 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl }:
|
2019-07-10 21:02:19 +01:00
|
|
|
|
2016-04-28 12:26:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "zpaq";
|
2019-07-10 21:02:19 +01:00
|
|
|
version = "7.15";
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2019-07-10 21:02:19 +01: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 14:07:47 +01:00
|
|
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2016-03-18 05:02:18 +00:00
|
|
|
preBuild = let
|
|
|
|
CPPFLAGS = with stdenv; ""
|
|
|
|
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
|
|
|
|
+ "-Dunix";
|
2019-04-21 18:06:50 +01:00
|
|
|
CXXFLAGS = "-O3 -DNDEBUG";
|
2016-03-18 05:02:18 +00:00
|
|
|
in ''
|
|
|
|
buildFlagsArray=( "CPPFLAGS=${CPPFLAGS}" "CXXFLAGS=${CXXFLAGS}" )
|
2013-03-09 12:30:22 +00:00
|
|
|
'';
|
2015-12-31 03:50:57 +00:00
|
|
|
|
2016-03-18 05:02:18 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
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 02:11:51 +01: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
|
|
|
};
|
|
|
|
}
|