depot/third_party/nixpkgs/pkgs/tools/filesystems/juicefs/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
848 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
}:
buildGoModule rec {
pname = "juicefs";
version = "1.1.1";
src = fetchFromGitHub {
owner = "juicedata";
repo = pname;
rev = "v${version}";
sha256 = "sha256-dMzBgwd5tVxE6OFHf6QTZfoqgL/t2pX+OgI6Pki6PG8=";
};
vendorHash = "sha256-orq03bwN1cbwHoZFXz92tcA2F0oivGR/C5EJDAPA+pk=";
ldflags = [ "-s" "-w" ];
doCheck = false; # requires network access
# we dont need the libjfs binary
postFixup = ''
rm $out/bin/libjfs
'';
postInstall = ''
ln -s $out/bin/juicefs $out/bin/mount.juicefs
'';
meta = with lib; {
description = "A distributed POSIX file system built on top of Redis and S3";
homepage = "https://www.juicefs.com/";
license = licenses.asl20;
maintainers = with maintainers; [ dit7ya ];
broken = stdenv.isDarwin;
};
}