about summary refs log tree commit diff
path: root/pkgs/tools/filesystems/ceph/default.nix
blob: 7a8b85a8945f4a8738482cde089047f30d3a178a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{stdenv, fetchgit, libatomic_ops, autoconf, automake, boost, btrfsProgs, cryptopp, curl, expat,
 fcgi, fuse, gperftools, keyutils, leveldb, libaio, libedit, libtool,
 libuuid, linuxHeaders, openssl, pkgconfig, python, snappy, which, xfsprogs, xz}:

stdenv.mkDerivation rec {
  baseName="ceph";
  version="0.79";
  name="${baseName}-${version}";
  buildInputs = [
    fuse linuxHeaders pkgconfig libatomic_ops autoconf automake boost btrfsProgs cryptopp expat
    fcgi fuse gperftools keyutils leveldb libaio libedit libtool libuuid openssl pkgconfig
    python snappy which xfsprogs.lib xz
  ];

  preConfigure = ''
    ./autogen.sh
  '';

  installFlags = "DESTDIR=\${out}";

  enableParallelBuilding = true;
  src = fetchgit {
    url = "https://github.com/ceph/ceph";
    rev = "4c2d73a5095f527c3a2168deb5fa54b3c8991a6e";
    sha256 = "0850m817wqqmw2qdnwm5jvbdgifzlc7kcd05jv526pdvmq1x92rf";
  };

  meta = {
    inherit version;
    description = "Distributed storage system";
    maintainers = [
      stdenv.lib.maintainers.ak
    ];
    platforms = with stdenv.lib.platforms; 
      linux;
  };
}