git.iko.soy/typeable/nixpkgs
on master help sign in
lizardfs: init at 3.9.4

LizardFS is a highly reliable, scalable and efficient distributed file system.

commitc4435493aa203e9053fbd83a7690fcda70647250 authorrushmorem <rushmore@webenchanter.com> dateTue 14 Jun 2016, 20:29 (10 years ago) parent9f996d6
3 files changed+80
pkgs/tools/filesystems/lizardfs/check-includes.patch+30 pkgs/tools/filesystems/lizardfs/default.nix+48 pkgs/top-level/all-packages.nix+2
pkgs/tools/filesystems/lizardfs/check-includes.patchnew file+30
@@ -0,0 +1,30 @@
1+From 60f64d7077ebd2b29b18faa3b25ee593e126e347 Mon Sep 17 00:00:00 2001
2+From: Dmitry Smirnov <onlyjob@member.fsf.org>
3+Date: Sun, 20 Dec 2015 14:03:20 +1100
4+Subject: [PATCH] build: Fix FTBFS with CMake-3.4
5+
6+Closes: #363
7+
8+~~~~
9+ CMake Error at CheckIncludes.cmake:4 (check_include_files):
10+ Unknown CMake command "check_include_files".
11+ Call Stack (most recent call first):
12+ CMakeLists.txt:113 (check_includes)
13+~~~~
14+
15+Change-Id: I70f03d829c40ae560083a98c2bcf6344dbac3ad6
16+Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
17+---
18+ CheckIncludes.cmake | 2 ++
19+ 1 file changed, 2 insertions(+)
20+
21+diff --git a/CheckIncludes.cmake b/CheckIncludes.cmake
22+index 19ed485..f51075a 100644
23+--- a/CheckIncludes.cmake
24++++ b/CheckIncludes.cmake
25+@@ -1,3 +1,5 @@
26++include(CheckIncludeFiles)
27++
28+ function(check_includes INCLUDES)
29+ set(INCLUDE_MISSING FALSE)
30+ foreach(INCLUDE_FILE ${INCLUDES})
pkgs/tools/filesystems/lizardfs/default.nixnew file+48
@@ -0,0 +1,48 @@
1+{ stdenv
2+, fetchFromGitHub
3+, cmake
4+, makeWrapper
5+, python
6+, fuse
7+# The following are required for manpages
8+#, asciidoc, libxml2
9+, boost
10+, pkgconfig
11+, judy
12+, pam
13+, zlib # optional
14+}:
15+
16+stdenv.mkDerivation rec {
17+ name = "lizardfs-${version}";
18+ version = "3.9.4";
19+
20+ src = fetchFromGitHub {
21+ owner = "lizardfs";
22+ repo = "lizardfs";
23+ rev = "v.${version}";
24+ sha256 = "1vg33jy280apm4lp5dn3x51pkf7035ijqjm8wbmyha2g35gfjrlx";
25+ };
26+
27+ # Manpages don't build in the current release
28+ buildInputs = [ cmake fuse /* asciidoc libxml2.bin */ zlib boost pkgconfig judy pam makeWrapper ];
29+
30+ # Fixed in upcoming 3.10.0
31+ patches = [ ./check-includes.patch ];
32+
33+ postInstall = ''
34+ wrapProgram $out/sbin/lizardfs-cgiserver \
35+ --prefix PATH ":" "${python}/bin"
36+
37+ # mfssnapshot and mfscgiserv are deprecated
38+ rm -f $out/bin/mfssnapshot $out/sbin/mfscgiserv
39+ '';
40+
41+ meta = with stdenv.lib; {
42+ homepage = https://lizardfs.com;
43+ description = "A highly reliable, scalable and efficient distributed file system";
44+ platforms = platforms.linux;
45+ license = licenses.gpl3;
46+ maintainers = [ maintainers.rushmorem ];
47+ };
48+}
pkgs/top-level/all-packages.nix+2
@@ -4672,6 +4672,8 @@ in
46724672
46734673 liquibase = callPackage ../development/tools/database/liquibase { };
46744674
4675+ lizardfs = callPackage ../tools/filesystems/lizardfs { };
4676+
46754677 llvm = self.llvmPackages.llvm;
46764678
46774679 llvm_38 = self.llvmPackages_38.llvm;