2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-26 10:26:21 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "gcsfuse";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "2.4.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlecloudplatform";
|
|
|
|
repo = "gcsfuse";
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-4susiXFe1aBcakxRkhmOe7dvcwsNfam4KKyFFzYXhcU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
vendorHash = "sha256-uOr929RS8q7LB+WDiyxEIyScE/brmvPJKfnq28PfsDM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
subPackages = [ "." "tools/mount_gcsfuse" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ];
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
checkFlags =
|
2023-02-02 18:25:31 +00:00
|
|
|
let
|
|
|
|
skippedTests = [
|
2024-05-15 15:35:15 +00:00
|
|
|
# Disable flaky tests
|
2023-02-02 18:25:31 +00:00
|
|
|
"Test_Main"
|
|
|
|
"TestFlags"
|
|
|
|
];
|
|
|
|
in
|
2024-05-15 15:35:15 +00:00
|
|
|
[ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ];
|
2022-11-04 12:27:35 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
postInstall = ''
|
2020-05-15 21:57:56 +00:00
|
|
|
ln -s $out/bin/mount_gcsfuse $out/bin/mount.gcsfuse
|
|
|
|
ln -s $out/bin/mount_gcsfuse $out/bin/mount.fuse.gcsfuse
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "User-space file system for interacting with Google Cloud Storage";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://cloud.google.com/storage/docs/gcs-fuse";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/GoogleCloudPlatform/gcsfuse/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.asl20;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|