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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
927 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub
, cmake, protobufc
, libunwind, lzo, openssl, protobuf, zlib
}:
2021-09-19 17:08:39 +00:00
stdenv.mkDerivation rec {
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
patches = [
# compare with https://github.com/zbackup/zbackup/pull/158;
# but that doesn't apply cleanly to this version
./protobuf-api-change.patch
];
# zbackup uses dynamic exception specifications which are not
# allowed in C++17
env.NIX_CFLAGS_COMPILE = toString [ "--std=c++14" ];
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 = "A versatile deduplicating backup tool";
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
};
}