2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, python
|
|
|
|
, fuse
|
|
|
|
, pkgconfig
|
|
|
|
, libpcap
|
2020-06-18 07:06:33 +00:00
|
|
|
, zlib
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moosefs";
|
2020-08-20 17:08:02 +00:00
|
|
|
version = "3.0.114";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-08-20 17:08:02 +00:00
|
|
|
sha256 = "0bilrzzlg599xy21cm7r0xb2sanngr74j3z03xgybcm10kl97i7j";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ fuse libpcap zlib ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-06-18 07:06:33 +00:00
|
|
|
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram $out/sbin/mfscgiserv \
|
|
|
|
--prefix PATH ":" "${python}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://moosefs.com";
|
|
|
|
description = "Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.mfossen ];
|
|
|
|
};
|
|
|
|
}
|