2021-10-19 02:48:57 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
|
|
|
, cmake, protobufc
|
|
|
|
, libunwind, lzo, openssl, protobuf, zlib
|
|
|
|
}:
|
|
|
|
|
2021-09-19 19:08:39 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "zbackup";
|
2015-10-03 00:34:49 +02:00
|
|
|
version = "1.4.4";
|
2021-09-19 19:08:39 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zbackup";
|
|
|
|
repo = "zbackup";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-9Fk4EhEeQ2J4Kirc7oad4CzmW70Mmza6uozd87qfgZI=";
|
2015-10-03 00:34:49 +02:00
|
|
|
};
|
2021-09-19 19:08:39 +02:00
|
|
|
|
2021-10-19 02:48:57 +02:00
|
|
|
patches = [
|
|
|
|
# compare with https://github.com/zbackup/zbackup/pull/158;
|
|
|
|
# but that doesn't apply cleanly to this version
|
|
|
|
./protobuf-api-change.patch
|
|
|
|
];
|
|
|
|
|
2015-10-03 00:34:49 +02:00
|
|
|
buildInputs = [ zlib openssl protobuf lzo libunwind ];
|
|
|
|
nativeBuildInputs = [ cmake protobufc ];
|
2021-09-19 19:08:39 +02:00
|
|
|
|
2015-10-03 00:34:49 +02:00
|
|
|
meta = {
|
|
|
|
description = "A versatile deduplicating backup tool";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://zbackup.org/";
|
2021-01-15 10:19:50 +01:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2015-10-03 00:34:49 +02:00
|
|
|
};
|
|
|
|
}
|