2016-06-14 20:29:50 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
2019-10-25 07:54:24 +02:00
|
|
|
, fetchpatch
|
2016-06-14 20:29:50 +02:00
|
|
|
, cmake
|
|
|
|
, makeWrapper
|
2019-10-25 07:54:24 +02:00
|
|
|
, python2
|
2018-11-22 03:54:14 +01:00
|
|
|
, db
|
2016-06-14 20:29:50 +02:00
|
|
|
, fuse
|
2016-06-17 00:12:55 +02:00
|
|
|
, asciidoc
|
|
|
|
, libxml2
|
|
|
|
, libxslt
|
2016-09-02 20:57:08 +02:00
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, docbook_xsl
|
2016-06-14 20:29:50 +02:00
|
|
|
, boost
|
|
|
|
, pkgconfig
|
|
|
|
, judy
|
|
|
|
, pam
|
2019-10-25 07:54:24 +02:00
|
|
|
, spdlog
|
2016-06-14 20:29:50 +02:00
|
|
|
, zlib # optional
|
|
|
|
}:
|
|
|
|
|
2019-10-25 07:54:24 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lizardfs";
|
2018-08-23 19:49:33 +02:00
|
|
|
version = "3.12.0";
|
2016-06-14 20:29:50 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-10-25 07:54:24 +02:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2016-09-14 19:04:23 +02:00
|
|
|
rev = "v${version}";
|
2018-08-23 19:49:33 +02:00
|
|
|
sha256 = "0zk73wmx82ari3m2mv0zx04x1ggsdmwcwn7k6bkl5c0jnxffc4ax";
|
2016-06-14 20:29:50 +02:00
|
|
|
};
|
|
|
|
|
2018-08-23 19:49:33 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
|
|
|
|
buildInputs =
|
2018-11-22 03:54:14 +01:00
|
|
|
[ db fuse asciidoc libxml2 libxslt docbook_xml_dtd_412 docbook_xsl
|
2019-10-25 07:54:24 +02:00
|
|
|
zlib boost judy pam spdlog python2
|
2016-09-02 20:57:08 +02:00
|
|
|
];
|
2016-06-14 20:29:50 +02:00
|
|
|
|
2018-08-23 19:49:33 +02:00
|
|
|
patches = [
|
2019-10-25 07:54:24 +02:00
|
|
|
# Use system-provided spdlog instead of downloading an old one (next two patches)
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/debian/lizardfs/raw/d003c371/debian/patches/system-spdlog.patch";
|
|
|
|
sha256 = "1znpqqzb0k5bb7s4d7abfxzn5ry1khz8r76sb808c95cpkw91a9i";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://salsa.debian.org/debian/lizardfs/raw/bfcd5bcf/debian/patches/spdlog.patch";
|
|
|
|
sha256 = "0j44rb816i6kfh3y2qdha59c4ja6wmcnlrlq29il4ybxn42914md";
|
|
|
|
})
|
2020-09-21 10:12:45 +02:00
|
|
|
# Fix https://github.com/lizardfs/lizardfs/issues/655
|
|
|
|
# (Remove upon update to 3.13)
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/lizardfs/lizardfs/commit/5d20c95179be09241b039050bceda3c46980c004.patch";
|
|
|
|
sha256 = "185bfcz2rjr4cnxld2yc2nxwzz0rk4x1fl1sd25g8gr5advllmdv";
|
|
|
|
})
|
2018-08-23 19:49:33 +02:00
|
|
|
];
|
|
|
|
|
2016-06-14 20:29:50 +02:00
|
|
|
meta = with stdenv.lib; {
|
2019-10-25 07:54:24 +02:00
|
|
|
homepage = "https://lizardfs.com";
|
2016-06-14 20:29:50 +02:00
|
|
|
description = "A highly reliable, scalable and efficient distributed file system";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.rushmorem ];
|
|
|
|
};
|
|
|
|
}
|