2019-03-13 02:41:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, python
|
|
|
|
, fuse
|
|
|
|
, pkgconfig
|
|
|
|
, libpcap
|
2020-06-07 14:28:18 +01:00
|
|
|
, zlib
|
2019-03-13 02:41:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "moosefs";
|
2020-10-25 22:17:56 +00:00
|
|
|
version = "3.0.115";
|
2019-03-13 02:41:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-10-25 22:17:56 +00:00
|
|
|
sha256 = "0dap9dqwwx8adma6arxg015riqc86cmjv2m44hk0kz7s24h79ipq";
|
2019-03-13 02:41:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ fuse libpcap zlib ];
|
|
|
|
|
|
|
|
postInstall = ''
|
2020-06-07 14:28:18 +01:00
|
|
|
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
|
2019-03-13 02:41:37 +00:00
|
|
|
wrapProgram $out/sbin/mfscgiserv \
|
|
|
|
--prefix PATH ":" "${python}/bin"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 16:32:05 +01:00
|
|
|
homepage = "https://moosefs.com";
|
2019-03-13 02:41:37 +00:00
|
|
|
description = "Open Source, Petabyte, Fault-Tolerant, Highly Performing, Scalable Network Distributed File System";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.mfossen ];
|
|
|
|
};
|
|
|
|
}
|