commit
ae24e28a98
@ -0,0 +1,22 @@ |
||||
diff --git a/configure b/configure
|
||||
index dfc1b3e..55577af 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -18,7 +18,7 @@ esac
|
||||
# Some binaries that we'll need, and the places that we might find them.
|
||||
|
||||
IFS=:
|
||||
-binlist="uname:flex:gcc:wish:rm:cp:mkdir:chmod:sed"
|
||||
+binlist="uname:flex:cc:wish:rm:cp:mkdir:chmod:sed"
|
||||
pathlist=$PATH
|
||||
libpathlist=$LIBS
|
||||
incpathlist=$INCLUDES
|
||||
@@ -109,7 +109,7 @@ fi
|
||||
# Splice it all in to Makefile.def to create the Makefile.
|
||||
|
||||
rm -f Makefile
|
||||
-sed -e "s __GCC__ $gcc g" -e "s __FLEX__ $flex g" -e "s __EXE__ $EXE g" \
|
||||
+sed -e "s __GCC__ $cc g" -e "s __FLEX__ $flex g" -e "s __EXE__ $EXE g" \
|
||||
-e "s*__OS_SIM_LIBS__*$OS_SIM_LIBS*g" -e "s __RM__ $rm g" \
|
||||
-e "s __CP__ $cp g" -e "s __MKDIR__ $mkdir g" -e "s __CHMOD__ $chmod g" \
|
||||
-e "s __USE_READLINE__ $USE_READLINE g" -e "s*__RLLPATH__*$RLLPATH*g" \
|
@ -1,32 +1,32 @@ |
||||
{ lib, buildGoPackage, fetchFromGitHub }: |
||||
{ lib, buildGoModule, fetchFromGitHub }: |
||||
|
||||
buildGoPackage rec { |
||||
buildGoModule rec { |
||||
pname = "gcsfuse"; |
||||
version = "0.41.1"; |
||||
version = "0.41.4"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "googlecloudplatform"; |
||||
repo = "gcsfuse"; |
||||
rev = "v${version}"; |
||||
sha256 = "sha256-5Kfd033SG1ldF+2QCZ01aa7ts0mA8uPXiLmqZIr94YQ="; |
||||
sha256 = "sha256-8QzSvR/uelp9iBLK+DsUXsH6fBOIoeXePeN7Spht6SE="; |
||||
}; |
||||
|
||||
goPackagePath = "github.com/googlecloudplatform/gcsfuse"; |
||||
vendorSha256 = null; |
||||
|
||||
subPackages = [ "." "tools/mount_gcsfuse" ]; |
||||
|
||||
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ]; |
||||
|
||||
postInstall = '' |
||||
ln -s $out/bin/mount_gcsfuse $out/bin/mount.gcsfuse |
||||
ln -s $out/bin/mount_gcsfuse $out/bin/mount.fuse.gcsfuse |
||||
''; |
||||
|
||||
ldflags = [ "-s" "-w" "-X main.gcsfuseVersion=${version}" ]; |
||||
|
||||
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 = []; |
||||
maintainers = with maintainers; [ aaronjheng ]; |
||||
}; |
||||
} |
||||
|
Loading…
Reference in new issue