ceph: Add zfs support

This commit is contained in:
William A. Kennington III 2014-09-25 01:24:42 -07:00
parent 1cd727180e
commit 32aa544fb6
2 changed files with 10 additions and 4 deletions

View file

@ -2,8 +2,10 @@
, boost, btrfsProgs, cryptopp, curl, expat, fcgi, fuse, gperftools, keyutils
, leveldb, libaio, libatomic_ops, libedit, libuuid, linuxHeaders, openssl
, python, snappy, udev, xfsprogs, xz
, zfs ? null
}:
with stdenv.lib;
let
wrapArgs = "--prefix PYTHONPATH : \"$(toPythonPath $out)\""
+ " --prefix PATH : \"$out/bin\""
@ -28,14 +30,16 @@ stdenv.mkDerivation rec {
buildInputs = [
boost boost.lib btrfsProgs cryptopp curl expat fcgi fuse gperftools keyutils
libatomic_ops leveldb libaio libedit libuuid linuxHeaders openssl python
snappy udev xfsprogs.lib xz
snappy udev xfsprogs.lib xz zfs
];
preConfigure = ''
./autogen.sh
'';
configureFlags = [ "--exec_prefix=$(out)" ];
configureFlags = [
"--exec_prefix=$(out)"
] ++ optional (zfs != null) "--with-zfs=${zfs}";
postInstall = ''
wrapProgram $out/bin/ceph ${wrapArgs}
@ -45,7 +49,7 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true;
meta = with stdenv.lib; {
meta = {
homepage = http://ceph.com/;
description = "Distributed storage system";
license = licenses.lgpl21;

View file

@ -768,7 +768,9 @@ let
cdrkit = callPackage ../tools/cd-dvd/cdrkit { };
ceph = callPackage ../tools/filesystems/ceph { };
ceph = callPackage ../tools/filesystems/ceph {
zfs = linuxPackages.zfs;
};
cfdg = builderDefsPackage ../tools/graphics/cfdg {
inherit libpng bison flex ffmpeg;