mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
38 lines
954 B
Nix
38 lines
954 B
Nix
{ lib, stdenv, fetchFromGitHub
|
|
, 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
|
|
];
|
|
|
|
# zbackup uses dynamic exception specifications which are not
|
|
# allowed in C++17
|
|
env.NIX_CFLAGS_COMPILE = toString [ "--std=c++14" ];
|
|
|
|
buildInputs = [ zlib openssl protobuf lzo libunwind ];
|
|
nativeBuildInputs = [ cmake protobufc ];
|
|
|
|
meta = {
|
|
description = "Versatile deduplicating backup tool";
|
|
mainProgram = "zbackup";
|
|
homepage = "http://zbackup.org/";
|
|
platforms = lib.platforms.linux;
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|