mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
33 lines
1.0 KiB
Nix
33 lines
1.0 KiB
Nix
{ lib, buildGoModule, fetchFromGitHub, fuse3, testers, blobfuse }:
|
|
|
|
let
|
|
version = "2.1.2";
|
|
src = fetchFromGitHub {
|
|
owner = "Azure";
|
|
repo = "azure-storage-fuse";
|
|
rev = "blobfuse2-${version}";
|
|
sha256 = "sha256-KzpD+6g1WwviydYE0v5pSH35zC41MrPlk5MitwAIgnE=";
|
|
};
|
|
in buildGoModule {
|
|
pname = "blobfuse";
|
|
inherit version src;
|
|
|
|
vendorHash = "sha256-+Z+mkTs/8qCtYcWZIMzsW9MQsC08KDJUHNbxyc6Ro5Y=";
|
|
|
|
buildInputs = [ fuse3 ];
|
|
|
|
# Many tests depend on network or needs to be configured to pass. See the link below for a starting point
|
|
# https://github.com/NixOS/nixpkgs/pull/201196/files#diff-e669dbe391f8856f4564f26023fe147a7b720aeefe6869ab7a218f02a8247302R20
|
|
doCheck = false;
|
|
|
|
passthru.tests.version = testers.testVersion { package = blobfuse; };
|
|
|
|
meta = with lib; {
|
|
description = "Mount an Azure Blob storage as filesystem through FUSE";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ jbgi ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "azure-storage-fuse";
|
|
};
|
|
}
|