mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
60 lines
1.4 KiB
Nix
60 lines
1.4 KiB
Nix
{ stdenv
|
|
, fetchFromGitHub
|
|
, fetchpatch
|
|
, cmake
|
|
, makeWrapper
|
|
, python2
|
|
, db
|
|
, fuse
|
|
, asciidoc
|
|
, libxml2
|
|
, libxslt
|
|
, docbook_xml_dtd_412
|
|
, docbook_xsl
|
|
, boost
|
|
, pkgconfig
|
|
, judy
|
|
, pam
|
|
, spdlog
|
|
, zlib # optional
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lizardfs";
|
|
version = "3.12.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = pname;
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "0zk73wmx82ari3m2mv0zx04x1ggsdmwcwn7k6bkl5c0jnxffc4ax";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig makeWrapper ];
|
|
|
|
buildInputs =
|
|
[ db fuse asciidoc libxml2 libxslt docbook_xml_dtd_412 docbook_xsl
|
|
zlib boost judy pam spdlog python2
|
|
];
|
|
|
|
patches = [
|
|
# 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";
|
|
})
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|