2016-06-14 19:29:50 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, makeWrapper
|
|
|
|
, python
|
|
|
|
, fuse
|
2016-06-16 23:12:55 +01:00
|
|
|
, asciidoc
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
2016-06-14 19:29:50 +01:00
|
|
|
, boost
|
|
|
|
, pkgconfig
|
|
|
|
, judy
|
|
|
|
, pam
|
|
|
|
, zlib # optional
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "lizardfs-${version}";
|
2016-06-16 23:12:55 +01:00
|
|
|
version = "3.10.0";
|
2016-06-14 19:29:50 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "lizardfs";
|
|
|
|
repo = "lizardfs";
|
|
|
|
rev = "v.${version}";
|
2016-06-16 23:12:55 +01:00
|
|
|
sha256 = "18p2pj9crjqgxxxzdfcs3j3fqhinmwi7qxcf71jsw17syqwyygh8";
|
2016-06-14 19:29:50 +01:00
|
|
|
};
|
|
|
|
|
2016-08-21 19:04:15 +01:00
|
|
|
buildInputs = [ cmake fuse asciidoc libxml2.bin libxslt.bin zlib boost pkgconfig judy pam makeWrapper ];
|
2016-06-14 19:29:50 +01:00
|
|
|
|
2016-06-16 23:12:55 +01:00
|
|
|
patches = [ ./412.patch ];
|
2016-06-14 19:29:50 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/sbin/lizardfs-cgiserver \
|
|
|
|
--prefix PATH ":" "${python}/bin"
|
|
|
|
|
|
|
|
# mfssnapshot and mfscgiserv are deprecated
|
2016-06-16 23:12:55 +01:00
|
|
|
rm $out/bin/mfssnapshot $out/sbin/mfscgiserv
|
2016-06-14 19:29:50 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://lizardfs.com;
|
|
|
|
description = "A highly reliable, scalable and efficient distributed file system";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.rushmorem ];
|
|
|
|
};
|
|
|
|
}
|