1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 05:31:22 +00:00
nixpkgs/pkgs/tools/filesystems/blobfuse/default.nix
polygon b73f621c25 blobfuse: Bump version, separately build cpplite
* Bump version to most recent 1.3.7 release
* Build scripts have changed, cpplite (azure-storage-lite) is now
  built separately
* Upstream they use build.sh to copy resulting static libraries to
  locations for blobfuse build, I put cpplite in a separate build
* adls library from cpplite was not installed and hence, not found
  by main blockfuse build, added a patch to install adls library, too
2021-05-19 10:35:55 -07:00

39 lines
1.1 KiB
Nix

{ 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;
};
}