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
41
pkgs/tools/filesystems/zkfuse/default.nix
Normal file
41
pkgs/tools/filesystems/zkfuse/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, autoreconfHook
|
||||
, boost
|
||||
, fuse
|
||||
, log4cxx
|
||||
, zookeeper
|
||||
, zookeeper_mt
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "zkfuse";
|
||||
inherit (zookeeper_mt) version src;
|
||||
|
||||
sourceRoot = "apache-${zookeeper.pname}-${version}/zookeeper-contrib/zookeeper-contrib-zkfuse";
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook ];
|
||||
buildInputs = [ zookeeper_mt log4cxx boost fuse ];
|
||||
|
||||
postPatch = ''
|
||||
# Make the async API accessible, and use the proper include path.
|
||||
sed -i src/zkadapter.h \
|
||||
-e '/"zookeeper\.h"/i#define THREADED' \
|
||||
-e 's,"zookeeper\.h",<zookeeper/zookeeper.h>,'
|
||||
'';
|
||||
|
||||
# c++17 (gcc-11's default) breaks the build as:
|
||||
# zkadapter.h:616:33: error: ISO C++17 does not allow dynamic exception specifications
|
||||
NIX_CFLAGS_COMPILE = [ "-std=c++14" ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp -v src/zkfuse $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ cstrahan ztzg ];
|
||||
license = licenses.asl20;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue