ceph: Add development version
This commit is contained in:
parent
3588cd8c4e
commit
81f705e98c
@ -1 +0,0 @@
|
|||||||
0.94.nix
|
|
13
pkgs/tools/filesystems/ceph/dev.nix
Normal file
13
pkgs/tools/filesystems/ceph/dev.nix
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{ callPackage, fetchgit, ... } @ args:
|
||||||
|
|
||||||
|
callPackage ./generic.nix (args // rec {
|
||||||
|
version = "9.0.0";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://github.com/ceph/ceph.git";
|
||||||
|
rev = "refs/tags/v${version}";
|
||||||
|
sha256 = "07x5riqxh2mjcvlblv900vclgh8glnb464s6ssdcgkp31fk1gybg";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./fix-pgrefdebugging.patch ];
|
||||||
|
})
|
@ -63,13 +63,13 @@ let
|
|||||||
hasRadosgw = optFcgi != null && optExpat != null && optCurl != null && optLibedit != null;
|
hasRadosgw = optFcgi != null && optExpat != null && optCurl != null && optLibedit != null;
|
||||||
|
|
||||||
hasXio = (stdenv.isLinux || stdenv.isFreeBSD) &&
|
hasXio = (stdenv.isLinux || stdenv.isFreeBSD) &&
|
||||||
versionAtLeast version "0.95" &&
|
versionAtLeast version "9.0.0" &&
|
||||||
optAccelio != null && optLibibverbs != null && optLibrdmacm != null;
|
optAccelio != null && optLibibverbs != null && optLibrdmacm != null;
|
||||||
|
|
||||||
hasRocksdb = versionAtLeast version "0.95" && optRocksdb != null;
|
hasRocksdb = versionAtLeast version "9.0.0" && optRocksdb != null;
|
||||||
|
|
||||||
# TODO: Reenable when kinetic support is fixed
|
# TODO: Reenable when kinetic support is fixed
|
||||||
#hasKinetic = versionAtLeast version "0.95" && optKinetic-cpp-client != null;
|
#hasKinetic = versionAtLeast version "9.0.0" && optKinetic-cpp-client != null;
|
||||||
hasKinetic = false;
|
hasKinetic = false;
|
||||||
|
|
||||||
# Malloc implementation (can be jemalloc, tcmalloc or null)
|
# Malloc implementation (can be jemalloc, tcmalloc or null)
|
||||||
@ -124,6 +124,9 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
# Fix seagate kinetic linking
|
# Fix seagate kinetic linking
|
||||||
sed -i 's,libcrypto.a,-lcrypto,g' src/os/Makefile.am
|
sed -i 's,libcrypto.a,-lcrypto,g' src/os/Makefile.am
|
||||||
|
'' + optionalString (versionAtLeast version "9.0.0") ''
|
||||||
|
# Fix gmock
|
||||||
|
patchShebangs src/gmock
|
||||||
'';
|
'';
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
@ -186,6 +189,10 @@ stdenv.mkDerivation {
|
|||||||
(mkWith false "valgrind" null)
|
(mkWith false "valgrind" null)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preBuild = optionalString (versionAtLeast version "9.0.0") ''
|
||||||
|
(cd src/gmock; make -j $NIX_BUILD_CORES)
|
||||||
|
'';
|
||||||
|
|
||||||
installFlags = [ "sysconfdir=\${out}/etc" ];
|
installFlags = [ "sysconfdir=\${out}/etc" ];
|
||||||
|
|
||||||
outputs = [ "out" "lib" ];
|
outputs = [ "out" "lib" ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user