2023-07-12 16:06:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-10-19 00:48:57 +00:00
|
|
|
, cmake, protobufc
|
|
|
|
, libunwind, lzo, openssl, protobuf, zlib
|
|
|
|
}:
|
|
|
|
|
2021-09-19 17:08:39 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "zbackup";
|
2015-10-02 22:34:49 +00:00
|
|
|
version = "1.4.4";
|
2021-09-19 17:08:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zbackup";
|
|
|
|
repo = "zbackup";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-9Fk4EhEeQ2J4Kirc7oad4CzmW70Mmza6uozd87qfgZI=";
|
2015-10-02 22:34:49 +00:00
|
|
|
};
|
2021-09-19 17:08:39 +00:00
|
|
|
|
2021-10-19 00:48:57 +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
|
|
|
|
];
|
|
|
|
|
2022-05-12 09:20:03 +00:00
|
|
|
# zbackup uses dynamic exception specifications which are not
|
|
|
|
# allowed in C++17
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "--std=c++14" ];
|
2022-05-12 09:20:03 +00:00
|
|
|
|
2015-10-02 22:34:49 +00:00
|
|
|
buildInputs = [ zlib openssl protobuf lzo libunwind ];
|
|
|
|
nativeBuildInputs = [ cmake protobufc ];
|
2021-09-19 17:08:39 +00:00
|
|
|
|
2015-10-02 22:34:49 +00:00
|
|
|
meta = {
|
|
|
|
description = "Versatile deduplicating backup tool";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "zbackup";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://zbackup.org/";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
2015-10-02 22:34:49 +00:00
|
|
|
};
|
|
|
|
}
|