summary refs log tree commit diff
path: root/pkgs/tools/filesystems/lizardfs/default.nix
diff options
context:
space:
mode:
authorrushmorem <rushmore@webenchanter.com>2016-06-14 20:29:50 +0200
committerrushmorem <rushmore@webenchanter.com>2016-06-15 04:23:44 +0200
commitc4435493aa203e9053fbd83a7690fcda70647250 (patch)
tree6522787882a0c50b9684f524174e0eff7a42f91c /pkgs/tools/filesystems/lizardfs/default.nix
parent9f996d6406d7be49208c136da74e748290ae9c93 (diff)
downloadnixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar.gz
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar.bz2
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar.lz
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar.xz
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.tar.zst
nixlib-c4435493aa203e9053fbd83a7690fcda70647250.zip
lizardfs: init at 3.9.4
LizardFS is a highly reliable, scalable and efficient distributed file
system.
Diffstat (limited to 'pkgs/tools/filesystems/lizardfs/default.nix')
-rw-r--r--pkgs/tools/filesystems/lizardfs/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/lizardfs/default.nix b/pkgs/tools/filesystems/lizardfs/default.nix
new file mode 100644
index 000000000000..7b6f2e17dcf5
--- /dev/null
+++ b/pkgs/tools/filesystems/lizardfs/default.nix
@@ -0,0 +1,48 @@
+{ stdenv
+, fetchFromGitHub
+, cmake
+, makeWrapper
+, python
+, fuse
+# The following are required for manpages
+#, asciidoc, libxml2
+, boost
+, pkgconfig
+, judy
+, pam
+, zlib # optional
+}:
+
+stdenv.mkDerivation rec {
+  name = "lizardfs-${version}";
+  version = "3.9.4";
+
+  src = fetchFromGitHub {
+    owner = "lizardfs";
+    repo = "lizardfs";
+    rev = "v.${version}";
+    sha256 = "1vg33jy280apm4lp5dn3x51pkf7035ijqjm8wbmyha2g35gfjrlx";
+  };
+
+  # Manpages don't build in the current release
+  buildInputs = [ cmake fuse /* asciidoc libxml2.bin */ zlib boost pkgconfig judy pam makeWrapper ];
+
+  # Fixed in upcoming 3.10.0
+  patches = [ ./check-includes.patch ];
+
+  postInstall = ''
+    wrapProgram $out/sbin/lizardfs-cgiserver \
+        --prefix PATH ":" "${python}/bin"
+
+    # mfssnapshot and mfscgiserv are deprecated
+    rm -f $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 ];
+  };
+}