mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 01:03:25 +00:00
73 lines
1.1 KiB
Nix
73 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
asciidoc,
|
|
jemalloc,
|
|
boost,
|
|
fmt,
|
|
fuse3,
|
|
spdlog,
|
|
yaml-cpp,
|
|
isa-l,
|
|
judy,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "saunafs";
|
|
version = "4.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "leil-io";
|
|
repo = "saunafs";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-t2fb8AA9m2I7Qna/v4F2GNL02iCU0r7zz5TgajHUmrg=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Distributed POSIX file system";
|
|
homepage = "https://saunafs.com";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ maintainers.markuskowa ];
|
|
};
|
|
})
|