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
38
pkgs/tools/filesystems/blobfuse/default.nix
Normal file
38
pkgs/tools/filesystems/blobfuse/default.nix
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, curl, gnutls, libgcrypt, libuuid, fuse, boost }:
|
||||
|
||||
let
|
||||
version = "1.3.7";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Azure";
|
||||
repo = "azure-storage-fuse";
|
||||
rev = "blobfuse-${version}-Linux";
|
||||
sha256 = "sha256-yihIuS4AG489U7eBi/p7H6S7Cg54kkQeNVCexxQZ60A=";
|
||||
};
|
||||
cpplite = stdenv.mkDerivation rec {
|
||||
pname = "cpplite";
|
||||
inherit version src;
|
||||
|
||||
sourceRoot = "source/cpplite";
|
||||
patches = [ ./install-adls.patch ];
|
||||
|
||||
cmakeFlags = [ "-DBUILD_ADLS=ON" "-DUSE_OPENSSL=OFF" ];
|
||||
|
||||
buildInputs = [ curl libuuid gnutls ];
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
};
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "blobfuse";
|
||||
inherit version src;
|
||||
|
||||
NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";
|
||||
|
||||
buildInputs = [ curl gnutls libgcrypt libuuid fuse boost cpplite ];
|
||||
nativeBuildInputs = [ cmake pkg-config ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Mount an Azure Blob storage as filesystem through FUSE";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ jbgi ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
14
pkgs/tools/filesystems/blobfuse/install-adls.patch
Normal file
14
pkgs/tools/filesystems/blobfuse/install-adls.patch
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
diff --git a/adls/CMakeLists.txt b/adls/CMakeLists.txt
|
||||
index 1fb7146..22e663a 100644
|
||||
--- a/adls/CMakeLists.txt
|
||||
+++ b/adls/CMakeLists.txt
|
||||
@@ -50,3 +50,9 @@ if(BUILD_TESTS)
|
||||
string(REGEX REPLACE "([^;]+)" "${CMAKE_CURRENT_SOURCE_DIR}/\\1" AZURE_STORAGE_ADLS_TEST_SOURCES "${AZURE_STORAGE_ADLS_TEST_SOURCES}")
|
||||
set(AZURE_STORAGE_ADLS_TEST_SOURCES ${AZURE_STORAGE_ADLS_TEST_SOURCES} PARENT_SCOPE)
|
||||
endif()
|
||||
+
|
||||
+install(TARGETS azure-storage-adls
|
||||
+ ARCHIVE DESTINATION lib
|
||||
+ LIBRARY DESTINATION lib
|
||||
+ RUNTIME DESTINATION bin)
|
||||
+
|
||||
Loading…
Add table
Add a link
Reference in a new issue