nixpkgs/pkgs/tools/filesystems/juicefs/default.nix
Adam Kirby 5dadfddc58 juicefs: add mount.juicefs symlink
Add mount.juicefs symlink so that /etc/fstab can mount juicefs fsType as required to use the NixOS fileSystems option with juicefs
2023-05-02 12:30:44 -04:00

41 lines
848 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, stdenv
}:
buildGoModule rec {
pname = "juicefs";
version = "1.0.4";
src = fetchFromGitHub {
owner = "juicedata";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Bez9wwAPDyYYECDwW9CB/ACTGUJl6PW3YiipIGY0Zbo=";
};
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;
};
}