2021-05-14 10:41:11 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, curl, gnutls, libgcrypt, libuuid, fuse, boost }:
|
2018-04-27 22:58:40 +00:00
|
|
|
|
2021-05-14 10:41:11 +00:00
|
|
|
let
|
|
|
|
version = "1.3.7";
|
2018-04-27 22:58:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Azure";
|
|
|
|
repo = "azure-storage-fuse";
|
2021-05-14 10:41:11 +00:00
|
|
|
rev = "blobfuse-${version}-Linux";
|
|
|
|
sha256 = "sha256-yihIuS4AG489U7eBi/p7H6S7Cg54kkQeNVCexxQZ60A=";
|
2018-04-27 22:58:40 +00:00
|
|
|
};
|
2021-05-14 10:41:11 +00:00
|
|
|
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;
|
2018-04-27 22:58:40 +00:00
|
|
|
|
2019-10-30 01:29:30 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=catch-value";
|
2019-01-11 02:57:52 +00:00
|
|
|
|
2021-05-14 10:41:11 +00:00
|
|
|
buildInputs = [ curl gnutls libgcrypt libuuid fuse boost cpplite ];
|
2021-01-17 09:17:16 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2018-04-27 22:58:40 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-27 22:58:40 +00:00
|
|
|
description = "Mount an Azure Blob storage as filesystem through FUSE";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jbgi ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2019-01-11 02:57:52 +00:00
|
|
|
}
|