nixpkgs/pkgs/tools/filesystems/gcsfuse/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.2 KiB
Nix
Raw Normal View History

2023-01-04 07:57:29 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
2016-09-26 07:51:04 +00:00
2022-05-31 11:53:40 +00:00
buildGoModule rec {
pname = "gcsfuse";
2023-08-07 00:39:56 +00:00
version = "1.0.1";
2016-09-26 07:51:04 +00:00
2019-09-07 08:51:29 +00:00
src = fetchFromGitHub {
owner = "googlecloudplatform";
repo = "gcsfuse";
2023-01-24 09:05:04 +00:00
rev = "v${version}";
2023-08-07 00:39:56 +00:00
hash = "sha256-9RqvEETRwcyK59AIWRgT3YNMu9MYZGD9rr5vyzTn0xg=";
2016-09-26 07:51:04 +00:00
};
2023-05-24 09:51:58 +00:00
vendorHash = "sha256-oTELdPPkKBQFBIRhjns6t3wj84RQhDVOi95seNyeeR0=";
2019-09-07 08:51:29 +00:00
2023-01-24 09:05:04 +00:00
subPackages = [ "." "tools/mount_gcsfuse" ];
2020-01-15 23:18:18 +00:00
2023-01-24 09:05:04 +00:00
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ];
2022-05-31 11:53:40 +00:00
2022-11-06 00:21:46 +00:00
preCheck =
2023-01-24 09:05:04 +00:00
let
skippedTests = [
"Test_Main"
"TestFlags"
];
in
2022-11-06 00:21:46 +00:00
''
# Disable flaky tests
buildFlagsArray+=("-run" "[^(${builtins.concatStringsSep "|" skippedTests})]")
'';
2020-01-15 23:18:18 +00:00
postInstall = ''
ln -s $out/bin/mount_gcsfuse $out/bin/mount.gcsfuse
ln -s $out/bin/mount_gcsfuse $out/bin/mount.fuse.gcsfuse
2020-01-15 23:18:18 +00:00
'';
2023-01-24 09:05:04 +00:00
meta = with lib; {
2019-09-07 08:51:29 +00:00
description = "A user-space file system for interacting with Google Cloud Storage";
homepage = "https://cloud.google.com/storage/docs/gcs-fuse";
2023-01-04 07:57:29 +00:00
changelog = "https://github.com/GoogleCloudPlatform/gcsfuse/releases/tag/v${version}";
2019-09-07 08:51:29 +00:00
license = licenses.asl20;
2022-05-31 11:53:40 +00:00
maintainers = with maintainers; [ aaronjheng ];
2016-09-26 07:51:04 +00:00
};
}