nixpkgs/pkgs/tools/backup/zbackup/default.nix

33 lines
798 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, fetchpatch
, cmake, protobufc
, libunwind, lzo, openssl, protobuf, zlib
}:
2021-09-19 19:08:39 +02:00
stdenv.mkDerivation rec {
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
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";
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
};
}