1{ lib
2, stdenv
3, fetchFromGitHub
4, fetchpatch
5, cmake
6, makeWrapper
7, python3
8, db
9, fuse
10, asciidoc
11, libxml2
12, libxslt
13, docbook_xml_dtd_412
14, docbook_xsl
15, boost
16, pkg-config
17, judy
18, pam
19, spdlog
20, systemdMinimal
21, zlib # optional
22}:
23
24stdenv.mkDerivation rec {
25 pname = "lizardfs";
26 version = "3.13.0-rc3";
27
28 src = fetchFromGitHub {
29 owner = pname;
30 repo = pname;
31 rev = version;
32 sha256 = "sha256-rgaFhJvmA1RVDL4+vQLMC0GrdlgUlvJeZ5/JJ67C20Q=";
33 };
34
35 nativeBuildInputs = [ cmake pkg-config makeWrapper ];
36
37 buildInputs = [
38 db fuse asciidoc libxml2 libxslt docbook_xml_dtd_412 docbook_xsl
39 zlib boost judy pam spdlog python3 systemdMinimal
40 ];
41
42 meta = with lib; {
43 homepage = "https://lizardfs.com";
44 description = "A highly reliable, scalable and efficient distributed file system";
45 platforms = platforms.linux;
46 license = licenses.gpl3;
47 maintainers = with maintainers; [ rushmorem shamilton ];
48 # 'fprintf' was not declared in this scope
49 broken = true;
50 };
51}