2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, perl, unzip }:
|
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
|
|
|
|
2016-03-18 05:02:18 +00:00
|
|
|
nativeBuildInputs = [ perl /* for pod2man */ ];
|
2015-12-31 03:50:57 +00:00
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
2016-03-18 05:02:18 +00:00
|
|
|
preBuild = let
|
|
|
|
CPPFLAGS = with stdenv; ""
|
|
|
|
+ (lib.optionalString (!isi686 && !isx86_64) "-DNOJIT ")
|
|
|
|
+ "-Dunix";
|
2019-04-21 17:06:50 +00: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 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;
|
2016-09-26 13:44:11 +00:00
|
|
|
inherit version;
|
2013-03-09 12:30:22 +00:00
|
|
|
};
|
|
|
|
}
|