2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "gcsfuse";
|
2021-02-24 18:30:23 +00:00
|
|
|
version = "0.33.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "googlecloudplatform";
|
|
|
|
repo = "gcsfuse";
|
|
|
|
rev = "v${version}";
|
2021-02-24 18:30:23 +00:00
|
|
|
sha256 = "sha256-BZOKZMSUpMSoxmgk/S2MOJfKeYSuqw9YdS3v+Jy/kaU=";
|
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
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.gcsfuseVersion=${version}" ];
|
|
|
|
|
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 = [];
|
|
|
|
};
|
|
|
|
}
|