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

51 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, cmake
, makeWrapper
, python
, fuse
2016-06-16 23:12:55 +01:00
, asciidoc
, libxml2
, libxslt
2016-09-02 19:57:08 +01:00
, docbook_xml_dtd_412
, docbook_xsl
, boost
, pkgconfig
, judy
, pam
, zlib # optional
}:
stdenv.mkDerivation rec {
name = "lizardfs-${version}";
2017-08-29 16:47:21 +01:00
version = "3.11.3";
src = fetchFromGitHub {
owner = "lizardfs";
repo = "lizardfs";
2016-09-14 18:04:23 +01:00
rev = "v${version}";
2017-08-29 16:47:21 +01:00
sha256 = "1njgj242vgpdqb1di321jfqk4al5lk72x2iyp0nldy7h6r98l2ww";
};
2016-09-02 19:57:08 +01:00
buildInputs =
[ cmake fuse asciidoc libxml2 libxslt docbook_xml_dtd_412 docbook_xsl
zlib boost pkgconfig judy pam makeWrapper
];
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
'';
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 ];
};
}