uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/tools/backup/zbackup/default.nix
Normal file
36
pkgs/tools/backup/zbackup/default.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ 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
|
||||
];
|
||||
|
||||
# zbackup uses dynamic exception specifications which are not
|
||||
# allowed in C++17
|
||||
NIX_CFLAGS_COMPILE = [ "--std=c++14" ];
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue