nixpkgs/pkgs/tools/filesystems/juicefs/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
848 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
}:
buildGoModule rec {
pname = "juicefs";
2023-04-09 14:18:50 +00:00
version = "1.0.4";
src = fetchFromGitHub {
owner = "juicedata";
repo = pname;
rev = "v${version}";
2023-04-09 14:18:50 +00:00
sha256 = "sha256-Bez9wwAPDyYYECDwW9CB/ACTGUJl6PW3YiipIGY0Zbo=";
};
2023-04-09 14:18:50 +00:00
vendorHash = "sha256-dsKNFIXcSeYUyh1TO1h1Ze3jS97pdhn2eU9hHjTARCo=";
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;
};
}