mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 01:20:40 +00:00
51 lines
1 KiB
Nix
51 lines
1 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, makeWrapper
|
|
, python
|
|
, fuse
|
|
, asciidoc
|
|
, libxml2
|
|
, libxslt
|
|
, docbook_xml_dtd_412
|
|
, docbook_xsl
|
|
, boost
|
|
, pkgconfig
|
|
, judy
|
|
, pam
|
|
, zlib # optional
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "lizardfs-${version}";
|
|
version = "3.11.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lizardfs";
|
|
repo = "lizardfs";
|
|
rev = "v${version}";
|
|
sha256 = "1njgj242vgpdqb1di321jfqk4al5lk72x2iyp0nldy7h6r98l2ww";
|
|
};
|
|
|
|
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
|
|
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 ];
|
|
};
|
|
}
|