nixpkgs/pkgs/tools/filesystems/moosefs/default.nix
Markus Kowalewski 69a601c627
moosefs: fix datapath for mfscgiserv
The datapath in mfscgisrv is hardcoded and pointed to
the nix store, which made the program fail on startup.
2020-06-07 15:28:18 +02:00

40 lines
908 B
Nix

{ stdenv
, fetchFromGitHub
, makeWrapper
, python
, fuse
, pkgconfig
, libpcap
, zlib
}:
stdenv.mkDerivation rec {
pname = "moosefs";
version = "3.0.113";
src = fetchFromGitHub {
owner = pname;
repo = pname;
rev = "v${version}";
sha256 = "0h3dhj6lznbkvmkr21w58avl9fa4pgj73fv0lkzcagksyyh5l0n9";
};
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; {
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 ];
};
}