moosefs: apply nixfmt

This commit is contained in:
Markus Kowalewski 2024-10-03 17:30:25 +02:00
parent dc279152f2
commit 466092701d

View File

@ -1,11 +1,13 @@
{ lib, stdenv
, fetchFromGitHub
, python3
, fuse
, pkg-config
, libpcap
, zlib
, nixosTests
{
lib,
stdenv,
fetchFromGitHub,
python3,
fuse,
pkg-config,
libpcap,
zlib,
nixosTests,
}:
stdenv.mkDerivation rec {
@ -23,12 +25,18 @@ stdenv.mkDerivation rec {
pkg-config
];
buildInputs =
[ fuse libpcap zlib python3 ];
buildInputs = [
fuse
libpcap
zlib
python3
];
strictDeps = true;
buildFlags = lib.optionals stdenv.hostPlatform.isDarwin [ "CPPFLAGS=-UHAVE_STRUCT_STAT_ST_BIRTHTIME" ];
buildFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"CPPFLAGS=-UHAVE_STRUCT_STAT_ST_BIRTHTIME"
];
# Fix the build on macOS with macFUSE installed
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
@ -48,13 +56,18 @@ stdenv.mkDerivation rec {
doCheck = true;
passthru.tests = { inherit (nixosTests) moosefs; };
passthru.tests = {
inherit (nixosTests) moosefs;
};
meta = {
homepage = "https://moosefs.com";
description = "Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System";
platforms = lib.platforms.unix;
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ mfossen markuskowa ];
maintainers = with lib.maintainers; [
mfossen
markuskowa
];
};
}