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

62 lines
1.8 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 PYTHONPATH : \"$(toPythonPath ${python.modules.readline})\""
2014-09-19 20:26:57 +02:00
+ " --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}";
2014-12-23 19:52:35 +01:00
version="0.90";
2014-09-19 20:26:57 +02:00
src = fetchgit {
url = "git://github.com/ceph/ceph.git";
2014-12-23 19:52:35 +01:00
rev = "refs/tags/v${version}";
sha256 = "17w06qw38cxmin30ssz981hkkpnh5kp7f8xpnwga7rb7fhi8w6ia";
2014-09-19 20:26:57 +02:00
};
2014-10-31 21:32:01 +01:00
patches = [
./0001-Makefile-env-Don-t-force-sbin.patch
];
2014-09-19 20:26:57 +02:00
nativeBuildInputs = [ autoconf automake makeWrapper pkgconfig libtool which ];
2014-04-16 23:42:21 +02:00
buildInputs = [
2014-10-01 21:55:40 +02:00
boost btrfsProgs cryptopp curl expat fcgi fuse gperftools keyutils
2014-09-19 20:26:57 +02:00
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}
wrapProgram $out/sbin/ceph-create-keys ${wrapArgs}
wrapProgram $out/sbin/ceph-disk ${wrapArgs}
2014-09-19 20:26:57 +02:00
'';
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
};
}