diff options
Diffstat (limited to 'pkgs/tools/filesystems/moosefs/default.nix')
-rw-r--r-- | pkgs/tools/filesystems/moosefs/default.nix | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/pkgs/tools/filesystems/moosefs/default.nix b/pkgs/tools/filesystems/moosefs/default.nix deleted file mode 100644 index 4f5524d6734c..000000000000 --- a/pkgs/tools/filesystems/moosefs/default.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ lib, stdenv -, fetchFromGitHub -, python3 -, fuse -, pkg-config -, libpcap -, zlib -, nixosTests -}: - -stdenv.mkDerivation rec { - pname = "moosefs"; - version = "3.0.118"; - - src = fetchFromGitHub { - owner = pname; - repo = pname; - rev = "v${version}"; - sha256 = "sha256-Sm32VwKlE0V5HZj+VXr66gYKS+fcU1+UVQELiZ64DpU="; - }; - - nativeBuildInputs = [ - pkg-config - ]; - - buildInputs = - [ fuse libpcap zlib python3 ]; - - strictDeps = true; - - buildFlags = lib.optionals stdenv.isDarwin [ "CPPFLAGS=-UHAVE_STRUCT_STAT_ST_BIRTHTIME" ]; - - # Fix the build on macOS with macFUSE installed - postPatch = lib.optionalString stdenv.isDarwin '' - substituteInPlace configure --replace \ - "/usr/local/lib/pkgconfig" "/nonexistent" - ''; - - preBuild = lib.optionalString stdenv.isDarwin '' - substituteInPlace config.h --replace \ - "#define HAVE_STRUCT_STAT_ST_BIRTHTIME 1" \ - "#undef HAVE_STRUCT_STAT_ST_BIRTHTIME" - ''; - - postInstall = '' - substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\"" - ''; - - doCheck = true; - - passthru.tests = { inherit (nixosTests) moosefs; }; - - meta = with lib; { - homepage = "https://moosefs.com"; - description = "Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System"; - platforms = platforms.unix; - license = licenses.gpl2Only; - maintainers = [ maintainers.mfossen ]; - }; -} |