summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01 21:28:56 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-04 14:54:50 +0200
commit17b6a597fb36063e4832983d3470ce695f809b31 (patch)
tree20a6fab4560599e2290633c029c8541697790459 /pkgs
parent660e85a0d9a95373d0cc9610d3040cd8d3774df9 (diff)
downloadnixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar.gz
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar.bz2
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar.lz
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar.xz
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.tar.zst
nixlib-17b6a597fb36063e4832983d3470ce695f809b31.zip
Revert "ceph: Now evaluate on darwin"
This reverts commit 54963fb5b7495ad3f63baa0b6d5d75d3f7c8a874.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/filesystems/ceph/generic.nix79
1 files changed, 25 insertions, 54 deletions
diff --git a/pkgs/tools/filesystems/ceph/generic.nix b/pkgs/tools/filesystems/ceph/generic.nix
index 9dbc85a32435..5d4932e36b43 100644
--- a/pkgs/tools/filesystems/ceph/generic.nix
+++ b/pkgs/tools/filesystems/ceph/generic.nix
@@ -26,61 +26,32 @@
 # We must have one crypto library
 assert cryptopp != null || (nss != null && nspr != null);
 
-with stdenv;
 with stdenv.lib;
 let
-  optSnappy = shouldUsePkg snappy;
-  optLeveldb = shouldUsePkg leveldb;
-  optYasm = shouldUsePkg yasm;
-  optFcgi = shouldUsePkg fcgi;
-  optExpat = shouldUsePkg expat;
-  optCurl = shouldUsePkg curl;
-  optFuse = shouldUsePkg fuse;
-  optAccelio = shouldUsePkg accelio;
-  optLibibverbs = shouldUsePkg libibverbs;
-  optLibrdmacm = shouldUsePkg librdmacm;
-  optLibedit = shouldUsePkg libedit;
-  optLibatomic_ops = shouldUsePkg libatomic_ops;
-  optKinetic-cpp-client = shouldUsePkg kinetic-cpp-client;
-  optRocksdb = shouldUsePkg rocksdb;
-  optLibs3 = shouldUsePkg libs3;
-
-  optJemalloc = shouldUsePkg jemalloc;
-  optGperftools = shouldUsePkg gperftools;
-
-  optCryptopp = shouldUsePkg cryptopp;
-  optNss = shouldUsePkg nss;
-  optNspr = shouldUsePkg nspr;
-
-  optLibaio = shouldUsePkg libaio;
-  optLibxfs = shouldUsePkg libxfs;
-  optZfs = shouldUsePkg zfs;
-
-  hasServer = optSnappy != null && optLeveldb != null;
+  hasServer = snappy != null && leveldb != null;
   hasMon = hasServer;
   hasMds = hasServer;
   hasOsd = hasServer;
-  hasRadosgw = optFcgi != null && optExpat != null && optCurl != null && optLibedit != null;
+  hasRadosgw = fcgi != null && expat != null && curl != null && libedit != null;
 
   hasXio = (stdenv.isLinux || stdenv.isFreeBSD) &&
     versionAtLeast version "0.95" &&
-    optAccelio != null && optLibibverbs != null && optLibrdmacm != null;
+    accelio != null && libibverbs != null && librdmacm != null;
 
-  hasRocksdb = versionAtLeast version "0.95" && optRocksdb != null;
+  hasRocksdb = versionAtLeast version "0.95" && rocksdb != null;
 
   # TODO: Reenable when kinetic support is fixed
-  #hasKinetic = versionAtLeast version "0.95" && optKinetic-cpp-client != null;
-  hasKinetic = false;
+  hasKinetic = versionAtLeast version "0.95" && kinetic-cpp-client != null && false;
 
   # Malloc implementation (can be jemalloc, tcmalloc or null)
-  malloc = if optJemalloc != null then optJemalloc else optGperftools;
+  malloc = if jemalloc != null then jemalloc else gperftools;
 
   # We prefer nss over cryptopp
-  cryptoStr = if optNss != null && optNspr != null then "nss" else
-    if optCryptopp != null then "cryptopp" else "none";
+  cryptoStr = if nss != null && nspr != null then "nss" else
+    if cryptopp != null then "cryptopp" else "none";
   cryptoLibsMap = {
-    nss = [ optNss optNspr ];
-    cryptopp = [ optCryptopp ];
+    nss = [ nss nspr ];
+    cryptopp = [ cryptopp ];
     none = [ ];
   };
 
@@ -100,22 +71,22 @@ stdenv.mkDerivation {
 
   nativeBuildInputs = [ autoconf automake makeWrapper pkgconfig libtool which ];
   buildInputs = buildInputs ++ cryptoLibsMap.${cryptoStr} ++ [
-    boost python libxml2 optYasm optLibatomic_ops optLibs3 malloc pythonPackages.flask zlib
+    boost python libxml2 yasm libatomic_ops libs3 malloc pythonPackages.flask zlib
   ] ++ optional (versionAtLeast version "9.0.0") [
     git                   # Used for the gitversion string
     pythonPackages.sphinx # Used for docs
   ] ++ optional stdenv.isLinux [
-    linuxHeaders libuuid udev keyutils optLibaio optLibxfs optZfs
+    linuxHeaders libuuid udev keyutils libaio libxfs zfs
   ] ++ optional hasServer [
-    optSnappy optLeveldb
+    snappy leveldb
   ] ++ optional hasRadosgw [
-    optFcgi optExpat optCurl optFuse optLibedit
+    fcgi expat curl fuse libedit
   ] ++ optional hasXio [
-    optAccelio optLibibverbs optLibrdmacm
+    accelio libibverbs librdmacm
   ] ++ optional hasRocksdb [
-    optRocksdb
+    rocksdb
   ] ++ optional hasKinetic [
-    optKinetic-cpp-client
+    kinetic-cpp-client
   ];
 
   postPatch = ''
@@ -163,23 +134,23 @@ stdenv.mkDerivation {
     (mkWith   false                        "profiler"          null)
     (mkWith   false                        "debug"             null)
     (mkEnable false                        "coverage"          null)
-    (mkWith   (optFuse != null)            "fuse"              null)
-    (mkWith   (malloc == optJemalloc)      "jemalloc"          null)
-    (mkWith   (malloc == optGperftools)    "tcmalloc"          null)
+    (mkWith   (fuse != null)               "fuse"              null)
+    (mkWith   (malloc == jemalloc)         "jemalloc"          null)
+    (mkWith   (malloc == gperftools)       "tcmalloc"          null)
     (mkEnable false                        "pgrefdebugging"    null)
     (mkEnable false                        "cephfs-java"       null)
     (mkEnable hasXio                       "xio"               null)
-    (mkWith   (optLibatomic_ops != null)   "libatomic-ops"     null)
+    (mkWith   (libatomic_ops != null)      "libatomic-ops"     null)
     (mkWith   true                         "ocf"               null)
     (mkWith   hasKinetic                   "kinetic"           null)
     (mkWith   hasRocksdb                   "librocksdb"        null)
     (mkWith   false                        "librocksdb-static" null)
-    (mkWith   (optLibs3 != null)           "system-libs3"      null)
+    (mkWith   (libs3 != null)              "system-libs3"      null)
     (mkWith   true                         "rest-bench"        null)
   ] ++ optional stdenv.isLinux [
-    (mkWith   (optLibaio != null)             "libaio"            null)
-    (mkWith   (optLibxfs != null)             "libxfs"            null)
-    (mkWith   (optZfs != null)                "libzfs"            null)
+    (mkWith   (libaio != null)             "libaio"            null)
+    (mkWith   (libxfs != null)             "libxfs"            null)
+    (mkWith   (zfs != null)                "libzfs"            null)
   ] ++ optional (versionAtLeast version "10.0.0") [
     (mkWith   true                         "man-pages"         null)
     (mkWith   false                        "tcmalloc-minimal"  null)