nixpkgs/pkgs/tools/filesystems/ceph/default.nix

60 lines
1.6 KiB
Nix
Raw Normal View History

2014-09-19 20:26:57 +02:00
{ stdenv, fetchgit, autoconf, automake, makeWrapper, pkgconfig, libtool, which
, boost, btrfsProgs, cryptopp, curl, expat, fcgi, fuse, gperftools, keyutils
, leveldb, libaio, libatomic_ops, libedit, libuuid, linuxHeaders, openssl
, python, snappy, udev, xfsprogs, xz
2014-09-25 10:24:42 +02:00
, zfs ? null
2014-09-19 20:26:57 +02:00
}:
2014-04-16 23:42:21 +02:00
2014-09-25 10:24:42 +02:00
with stdenv.lib;
2014-09-19 20:26:57 +02:00
let
wrapArgs = "--prefix PYTHONPATH : \"$(toPythonPath $out)\""
+ " --prefix PATH : \"$out/bin\""
+ " --prefix LD_LIBRARY_PATH : \"$out/lib\"";
in
2014-04-16 23:42:21 +02:00
stdenv.mkDerivation rec {
2014-09-19 20:26:57 +02:00
name="ceph-${version}";
version="0.85";
src = fetchgit {
url = "git://github.com/ceph/ceph.git";
rev = "refs/tags/v0.85";
sha256 = "0g98cgrs3gfsc8azg3k0n61bgna2w906qm69j4qbjkb61l83ld1z";
};
patches = [
./0001-Cleanup-boost-optionals.patch # Remove in 0.86
./0001-Makefile-env-Don-t-force-sbin.patch
];
nativeBuildInputs = [ autoconf automake makeWrapper pkgconfig libtool which ];
2014-04-16 23:42:21 +02:00
buildInputs = [
2014-09-19 20:26:57 +02:00
boost boost.lib btrfsProgs cryptopp curl expat fcgi fuse gperftools keyutils
libatomic_ops leveldb libaio libedit libuuid linuxHeaders openssl python
2014-09-25 10:24:42 +02:00
snappy udev xfsprogs.lib xz zfs
2014-04-16 23:42:21 +02:00
];
preConfigure = ''
./autogen.sh
'';
2014-09-25 10:24:42 +02:00
configureFlags = [
"--exec_prefix=$(out)"
] ++ optional (zfs != null) "--with-zfs=${zfs}";
2014-09-19 20:26:57 +02:00
postInstall = ''
wrapProgram $out/bin/ceph ${wrapArgs}
wrapProgram $out/bin/ceph-brag ${wrapArgs}
wrapProgram $out/bin/ceph-rest-api ${wrapArgs}
'';
2014-04-16 23:42:21 +02:00
enableParallelBuilding = true;
2014-09-25 10:24:42 +02:00
meta = {
2014-09-19 20:26:57 +02:00
homepage = http://ceph.com/;
2014-04-16 23:42:21 +02:00
description = "Distributed storage system";
2014-09-19 20:26:57 +02:00
license = licenses.lgpl21;
maintainers = with maintainers; [ ak wkennington ];
platforms = with platforms; linux;
2014-04-16 23:42:21 +02:00
};
}