2019-08-10 10:56:41 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
fetchgit,
|
|
|
|
python3Packages,
|
|
|
|
pkgconfig,
|
|
|
|
gcc8Stdenv,
|
|
|
|
boost,
|
|
|
|
git,
|
|
|
|
systemd,
|
|
|
|
gnutls,
|
|
|
|
cmake,
|
|
|
|
makeWrapper,
|
|
|
|
ninja,
|
|
|
|
ragel,
|
|
|
|
hwloc,
|
|
|
|
jsoncpp,
|
|
|
|
antlr3,
|
|
|
|
numactl,
|
|
|
|
protobuf,
|
|
|
|
cryptopp,
|
|
|
|
libxfs,
|
|
|
|
libyamlcpp,
|
|
|
|
libsystemtap,
|
|
|
|
lksctp-tools,
|
|
|
|
lz4,
|
|
|
|
libxml2,
|
|
|
|
zlib,
|
|
|
|
libpciaccess,
|
|
|
|
snappy,
|
|
|
|
libtool,
|
|
|
|
thrift
|
|
|
|
}:
|
2019-08-13 21:52:01 +00:00
|
|
|
gcc8Stdenv.mkDerivation {
|
2019-08-10 10:56:41 +00:00
|
|
|
pname = "scylladb";
|
|
|
|
version = "3.0.5";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/scylladb/scylla.git";
|
|
|
|
rev = "403f66ecad6bc773712c69c4a80ebd172eb48b13";
|
|
|
|
sha256 = "14mg0kzpkrxvwqyiy19ndy4rsc7s5gnv2gwd3xdwm1lx1ln8ywsi";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-10-07 02:48:22 +00:00
|
|
|
patches = [ ./seastar-configure-script-paths.patch ./configure-etc-osrelease.patch ];
|
2019-08-10 10:56:41 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
antlr3
|
|
|
|
python3Packages.pyparsing
|
|
|
|
boost
|
|
|
|
git
|
|
|
|
systemd
|
|
|
|
gnutls
|
|
|
|
ragel
|
|
|
|
jsoncpp
|
|
|
|
numactl
|
|
|
|
protobuf
|
|
|
|
cryptopp
|
|
|
|
libxfs
|
|
|
|
libyamlcpp
|
|
|
|
libsystemtap
|
|
|
|
lksctp-tools
|
|
|
|
lz4
|
|
|
|
libxml2
|
|
|
|
zlib
|
|
|
|
libpciaccess
|
|
|
|
snappy
|
|
|
|
libtool
|
|
|
|
thrift
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./configure.py
|
2019-10-07 03:34:01 +00:00
|
|
|
patchShebangs seastar/json/json2code.py
|
2019-08-10 10:56:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure.py --mode=release
|
|
|
|
'';
|
2019-10-07 05:21:11 +00:00
|
|
|
|
2019-08-10 10:56:41 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r * $out/
|
|
|
|
'';
|
2019-10-07 05:21:11 +00:00
|
|
|
|
2019-10-10 14:58:19 +00:00
|
|
|
requiredSystemFeatures = [ "big-parallel" ];
|
|
|
|
|
2019-08-10 10:56:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "NoSQL data store using the seastar framework, compatible with Apache Cassandra";
|
|
|
|
homepage = "https://scylladb.com";
|
|
|
|
license = licenses.agpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2019-10-12 07:45:54 +00:00
|
|
|
hydraPlatforms = []; # It's huge ATM, about 18 GB.
|
2019-08-10 10:56:41 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.farlion ];
|
|
|
|
};
|
|
|
|
}
|