2019-07-10 21:02:19 +01:00
|
|
|
{ stdenv, fetchFromGitHub, perl, unzip }:
|
|
|
|
|
2016-04-28 12:26:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "zpaq-${version}";
|
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
|
|
|
|
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 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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Incremental journaling backup utility and archiver";
|
2016-04-28 12:26:39 +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;
|
2016-09-26 14:44:11 +01:00
|
|
|
inherit version;
|
2013-03-09 12:30:22 +00:00
|
|
|
};
|
|
|
|
}
|