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