nixpkgs/pkgs/tools/filesystems/moosefs/default.nix

41 lines
908 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, makeWrapper
, python
, fuse
, pkgconfig
, libpcap
, zlib
}:
stdenv.mkDerivation rec {
pname = "moosefs";
2020-07-31 05:39:37 +01:00
version = "3.0.114";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
2020-07-31 05:39:37 +01:00
sha256 = "0bilrzzlg599xy21cm7r0xb2sanngr74j3z03xgybcm10kl97i7j";
};
nativeBuildInputs = [ pkgconfig makeWrapper ];
buildInputs =
[ fuse libpcap zlib ];
postInstall = ''
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
wrapProgram $out/sbin/mfscgiserv \
--prefix PATH ":" "${python}/bin"
'';
meta = with stdenv.lib; {
2020-04-01 16:32:05 +01:00
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 ];
};
}