mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +03:00
ceph: Add zfs support
This commit is contained in:
parent
1cd727180e
commit
32aa544fb6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user