Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
87 lines
1.4 KiB
Nix
87 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
nixosTests,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
asciidoc,
|
|
pkg-config,
|
|
db,
|
|
curl,
|
|
jemalloc,
|
|
boost186,
|
|
fmt,
|
|
fuse3,
|
|
spdlog,
|
|
yaml-cpp,
|
|
isa-l,
|
|
judy,
|
|
prometheus-cpp,
|
|
libz,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "saunafs";
|
|
version = "5.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leil-io";
|
|
repo = "saunafs";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-56PlUeXHqNhKYokKWqLCeaP3FZBdefhQFQQoP8YytQQ=";
|
|
};
|
|
|
|
patches = [
|
|
./sfstool.patch
|
|
];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
"dev"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
asciidoc
|
|
pkg-config
|
|
];
|
|
buildInputs = [
|
|
db
|
|
curl
|
|
fmt
|
|
spdlog
|
|
yaml-cpp
|
|
fuse3
|
|
boost186
|
|
jemalloc
|
|
isa-l
|
|
judy
|
|
prometheus-cpp
|
|
libz
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
})
|