nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 fuse3,
6 testers,
7 blobfuse,
8 nix-update-script,
9}:
10
11let
12 version = "2.5.0";
13 src = fetchFromGitHub {
14 owner = "Azure";
15 repo = "azure-storage-fuse";
16 rev = "blobfuse2-${version}";
17 sha256 = "sha256-BRLORwEY8PeD9hFkpm3Gup+eXzdFkW1Rkr73ncyKrso=";
18 };
19in
20buildGoModule {
21 pname = "blobfuse";
22 inherit version src;
23
24 vendorHash = "sha256-L1ix9pRal5Ssfwf+kl9SFC9bbveuKeiuzrBwapvbFZY=";
25
26 buildInputs = [ fuse3 ];
27
28 # Many tests depend on network or needs to be configured to pass. See the link below for a starting point
29 # https://github.com/NixOS/nixpkgs/pull/201196/files#diff-e669dbe391f8856f4564f26023fe147a7b720aeefe6869ab7a218f02a8247302R20
30 doCheck = false;
31
32 passthru = {
33 updateScript = nix-update-script { };
34 tests.version = testers.testVersion { package = blobfuse; };
35 };
36
37 meta = {
38 description = "Mount an Azure Blob storage as filesystem through FUSE";
39 license = lib.licenses.mit;
40 maintainers = with lib.maintainers; [ jbgi ];
41 platforms = lib.platforms.linux;
42 mainProgram = "azure-storage-fuse";
43 };
44}