2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "gcsfuse";
|
2021-08-08 23:34:03 +00:00
|
|
|
version = "0.36.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlecloudplatform";
|
|
|
|
repo = "gcsfuse";
|
|
|
|
rev = "v${version}";
|
2021-08-08 23:34:03 +00:00
|
|
|
sha256 = "sha256-qsvHqSvMG7VwRtNmyun2oO+ZRZ1D1spefTeUXrWGSNk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goPackagePath = "github.com/googlecloudplatform/gcsfuse";
|
|
|
|
|
|
|
|
subPackages = [ "." "tools/mount_gcsfuse" ];
|
|
|
|
|
|
|
|
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
|
|
|
'';
|
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib;{
|
|
|
|
description = "A user-space file system for interacting with Google Cloud Storage";
|
|
|
|
homepage = "https://cloud.google.com/storage/docs/gcs-fuse";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [];
|
|
|
|
};
|
|
|
|
}
|