lol

blobfuse: 1.3.7 -> 2.1.0

Version 2 is implemented in Go, requiring a large change in the Nix
definition.

+16 -26
+16 -26
pkgs/tools/filesystems/blobfuse/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, pkg-config, curl, gnutls, libgcrypt, libuuid, fuse, boost }: 1 + { lib, buildGoModule, fetchFromGitHub, fuse3, testers, blobfuse }: 2 2 3 3 let 4 - version = "1.3.7"; 4 + version = "2.1.0"; 5 5 src = fetchFromGitHub { 6 - owner = "Azure"; 7 - repo = "azure-storage-fuse"; 8 - rev = "blobfuse-${version}-Linux"; 9 - sha256 = "sha256-yihIuS4AG489U7eBi/p7H6S7Cg54kkQeNVCexxQZ60A="; 10 - }; 11 - cpplite = stdenv.mkDerivation rec { 12 - pname = "cpplite"; 13 - inherit version src; 14 - 15 - sourceRoot = "${src.name}/cpplite"; 16 - patches = [ ./install-adls.patch ]; 17 - 18 - cmakeFlags = [ "-DBUILD_ADLS=ON" "-DUSE_OPENSSL=OFF" ]; 19 - 20 - buildInputs = [ curl libuuid gnutls ]; 21 - nativeBuildInputs = [ cmake pkg-config ]; 6 + owner = "Azure"; 7 + repo = "azure-storage-fuse"; 8 + rev = "blobfuse2-${version}"; 9 + sha256 = "sha256-+MnqIwLuR+YBTowgIQokV0kFzfYtMBdhd/+m9MOrF1Y="; 22 10 }; 23 - in stdenv.mkDerivation rec { 11 + in buildGoModule { 24 12 pname = "blobfuse"; 25 13 inherit version src; 26 14 27 - env.NIX_CFLAGS_COMPILE = toString [ 28 - # Needed with GCC 12 29 - "-Wno-error=deprecated-declarations" 30 - "-Wno-error=catch-value" 31 - ]; 15 + vendorHash = "sha256-WfVFV/6Owx51rHXyfMp7CRW7aQ3R5BFyfHronQ58Gik="; 16 + 17 + buildInputs = [ fuse3 ]; 18 + 19 + # Many tests depend on network or needs to be configured to pass. See the link below for a starting point 20 + # https://github.com/NixOS/nixpkgs/pull/201196/files#diff-e669dbe391f8856f4564f26023fe147a7b720aeefe6869ab7a218f02a8247302R20 21 + doCheck = false; 32 22 33 - buildInputs = [ curl gnutls libgcrypt libuuid fuse boost cpplite ]; 34 - nativeBuildInputs = [ cmake pkg-config ]; 23 + passthru.tests.version = testers.testVersion { package = blobfuse; }; 35 24 36 25 meta = with lib; { 37 26 description = "Mount an Azure Blob storage as filesystem through FUSE"; 38 27 license = licenses.mit; 39 28 maintainers = with maintainers; [ jbgi ]; 40 29 platforms = platforms.linux; 30 + mainProgram = "azure-storage-fuse"; 41 31 }; 42 32 }