ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
77 lines
1.2 KiB
Nix
77 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
nixosTests,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
asciidoc,
|
|
jemalloc,
|
|
boost,
|
|
fmt,
|
|
fuse3,
|
|
spdlog,
|
|
yaml-cpp,
|
|
isa-l,
|
|
judy,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "saunafs";
|
|
version = "4.5.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leil-io";
|
|
repo = "saunafs";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-oMFS5eNNzCpaineCLn0hh3bXGw3SNdj+Pdvk3pevIZg=";
|
|
};
|
|
|
|
patches = [
|
|
./sfstool.patch
|
|
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
asciidoc
|
|
];
|
|
buildInputs = [
|
|
fmt
|
|
spdlog
|
|
yaml-cpp
|
|
fuse3
|
|
boost
|
|
jemalloc
|
|
isa-l
|
|
judy
|
|
];
|
|
|
|
cmakeFlags = [
|
|
(lib.cmakeBool "ENABLE_WERROR" false)
|
|
(lib.cmakeBool "ENABLE_DOC" false)
|
|
(lib.cmakeBool "ENABLE_CLIENT_LIB" true)
|
|
(lib.cmakeBool "ENABLE_JEMALLOC" true)
|
|
];
|
|
|
|
postInstall = lib.optionalString (!stdenv.hostPlatform.isStatic) ''
|
|
rm $out/lib/*.a
|
|
|
|
ln -s $out/bin/sfsmount $out/bin/mount.saunafs
|
|
'';
|
|
|
|
passthru.tests = nixosTests.saunafs;
|
|
|
|
meta = with lib; {
|
|
description = "Distributed POSIX file system";
|
|
homepage = "https://saunafs.com";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
};
|
|
})
|