depot/third_party/nixpkgs/pkgs/tools/filesystems/juicefs/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

39 lines
847 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "juicefs";
version = "1.2.0";
src = fetchFromGitHub {
owner = "juicedata";
repo = pname;
rev = "v${version}";
hash = "sha256-qPdrcWCD8BYwRwnynNhcti7eUskgHP1kAS6KiS0LHsc=";
};
vendorHash = "sha256-tKbn/dFnYTc0fYwYUrrpdN1hzx047yQSFdTG94CifhM=";
excludedPackages = [ "sdk/java/libjfs" ];
ldflags = [
"-s"
"-w"
"-X github.com/juicedata/juicefs/pkg/version.version=${version}"
];
doCheck = false; # requires network access
postInstall = ''
ln -s $out/bin/juicefs $out/bin/mount.juicefs
'';
meta = with lib; {
description = "Distributed POSIX file system built on top of Redis and S3";
homepage = "https://www.juicefs.com/";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
};
}