nixpkgs/pkgs/tools/backup/zbackup/default.nix
Harrison Houghton 3b46f18b02 zbackup: fix
The upstream proposed fix doesn't apply cleanly, so here's a version
that does.
2021-10-24 15:06:20 -04:00

33 lines
798 B
Nix

{ lib, stdenv, fetchFromGitHub, fetchpatch
, cmake, protobufc
, libunwind, lzo, openssl, protobuf, zlib
}:
stdenv.mkDerivation rec {
pname = "zbackup";
version = "1.4.4";
src = fetchFromGitHub {
owner = "zbackup";
repo = "zbackup";
rev = version;
hash = "sha256-9Fk4EhEeQ2J4Kirc7oad4CzmW70Mmza6uozd87qfgZI=";
};
patches = [
# compare with https://github.com/zbackup/zbackup/pull/158;
# but that doesn't apply cleanly to this version
./protobuf-api-change.patch
];
buildInputs = [ zlib openssl protobuf lzo libunwind ];
nativeBuildInputs = [ cmake protobufc ];
meta = {
description = "A versatile deduplicating backup tool";
homepage = "http://zbackup.org/";
platforms = lib.platforms.linux;
license = lib.licenses.gpl2Plus;
};
}