2021-10-28 06:52:43 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch
|
|
|
|
, cmake, protobufc
|
|
|
|
, libunwind, lzo, openssl, protobuf, zlib
|
|
|
|
}:
|
|
|
|
|
2021-09-23 15:35:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "zbackup";
|
|
|
|
version = "1.4.4";
|
2021-09-23 15:35:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zbackup";
|
|
|
|
repo = "zbackup";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-9Fk4EhEeQ2J4Kirc7oad4CzmW70Mmza6uozd87qfgZI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-09-23 15:35:13 +00:00
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
patches = [
|
|
|
|
# compare with https://github.com/zbackup/zbackup/pull/158;
|
|
|
|
# but that doesn't apply cleanly to this version
|
|
|
|
./protobuf-api-change.patch
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ zlib openssl protobuf lzo libunwind ];
|
|
|
|
nativeBuildInputs = [ cmake protobufc ];
|
2021-09-23 15:35:13 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "A versatile deduplicating backup tool";
|
|
|
|
homepage = "http://zbackup.org/";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|