btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / bl / blobfuse / package.nix
blob2acd137be736daaf97ec79d816720745e80d7fef
1 { lib, buildGoModule, fetchFromGitHub, fuse3, testers, blobfuse }:
3 let
4   version = "2.1.2";
5   src = fetchFromGitHub {
6     owner = "Azure";
7     repo = "azure-storage-fuse";
8     rev = "blobfuse2-${version}";
9     sha256 = "sha256-KzpD+6g1WwviydYE0v5pSH35zC41MrPlk5MitwAIgnE=";
10   };
11 in buildGoModule {
12   pname = "blobfuse";
13   inherit version src;
15   vendorHash = "sha256-+Z+mkTs/8qCtYcWZIMzsW9MQsC08KDJUHNbxyc6Ro5Y=";
17   buildInputs = [ fuse3 ];
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;
23   passthru.tests.version = testers.testVersion { package = blobfuse; };
25   meta = with lib; {
26     description = "Mount an Azure Blob storage as filesystem through FUSE";
27     license = licenses.mit;
28     maintainers = with maintainers; [ jbgi ];
29     platforms = platforms.linux;
30     mainProgram = "azure-storage-fuse";
31   };