2019-08-10 11:56:41 +01:00
|
|
|
{
|
2021-01-25 08:26:54 +00:00
|
|
|
lib,
|
2022-03-08 14:30:18 +00:00
|
|
|
fetchFromGitHub,
|
2019-08-10 11:56:41 +01:00
|
|
|
python3Packages,
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config,
|
2019-08-10 11:56:41 +01:00
|
|
|
gcc8Stdenv,
|
|
|
|
boost,
|
|
|
|
git,
|
|
|
|
systemd,
|
|
|
|
gnutls,
|
|
|
|
cmake,
|
|
|
|
makeWrapper,
|
|
|
|
ninja,
|
|
|
|
ragel,
|
|
|
|
hwloc,
|
|
|
|
jsoncpp,
|
|
|
|
antlr3,
|
|
|
|
numactl,
|
|
|
|
protobuf,
|
|
|
|
cryptopp,
|
|
|
|
libxfs,
|
2023-01-29 14:44:19 +00:00
|
|
|
yaml-cpp,
|
2019-08-10 11:56:41 +01:00
|
|
|
libsystemtap,
|
|
|
|
lksctp-tools,
|
|
|
|
lz4,
|
|
|
|
libxml2,
|
|
|
|
zlib,
|
|
|
|
libpciaccess,
|
|
|
|
snappy,
|
|
|
|
libtool,
|
|
|
|
thrift
|
|
|
|
}:
|
2019-08-13 22:52:01 +01:00
|
|
|
gcc8Stdenv.mkDerivation {
|
2019-08-10 11:56:41 +01:00
|
|
|
pname = "scylladb";
|
|
|
|
version = "3.0.5";
|
|
|
|
|
2022-03-08 14:30:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "scylladb";
|
|
|
|
repo = "scylla";
|
2019-08-10 11:56:41 +01:00
|
|
|
rev = "403f66ecad6bc773712c69c4a80ebd172eb48b13";
|
2022-03-08 14:30:18 +00:00
|
|
|
sha256 = "sha256-UXOPLA2dhspbH40/se0r+jCdiW82BR895rvnef8Er5I=";
|
2019-08-10 11:56:41 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2019-10-07 03:48:22 +01:00
|
|
|
patches = [ ./seastar-configure-script-paths.patch ./configure-etc-osrelease.patch ];
|
2019-08-10 11:56:41 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-08-10 11:56:41 +01:00
|
|
|
cmake
|
|
|
|
makeWrapper
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
antlr3
|
|
|
|
python3Packages.pyparsing
|
|
|
|
boost
|
|
|
|
git
|
|
|
|
systemd
|
|
|
|
gnutls
|
|
|
|
ragel
|
|
|
|
jsoncpp
|
|
|
|
numactl
|
|
|
|
protobuf
|
|
|
|
cryptopp
|
|
|
|
libxfs
|
2023-01-29 14:44:19 +00:00
|
|
|
yaml-cpp
|
2019-08-10 11:56:41 +01:00
|
|
|
libsystemtap
|
|
|
|
lksctp-tools
|
|
|
|
lz4
|
|
|
|
libxml2
|
|
|
|
zlib
|
|
|
|
libpciaccess
|
|
|
|
snappy
|
|
|
|
libtool
|
|
|
|
thrift
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./configure.py
|
2019-10-07 04:34:01 +01:00
|
|
|
patchShebangs seastar/json/json2code.py
|
2019-08-10 11:56:41 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure.py --mode=release
|
|
|
|
'';
|
2019-10-07 06:21:11 +01:00
|
|
|
|
2019-08-10 11:56:41 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -r * $out/
|
|
|
|
'';
|
2019-10-07 06:21:11 +01:00
|
|
|
|
2019-10-10 15:58:19 +01:00
|
|
|
requiredSystemFeatures = [ "big-parallel" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-08-10 11:56:41 +01:00
|
|
|
description = "NoSQL data store using the seastar framework, compatible with Apache Cassandra";
|
|
|
|
homepage = "https://scylladb.com";
|
|
|
|
license = licenses.agpl3;
|
2021-01-15 07:07:56 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2019-10-12 08:45:54 +01:00
|
|
|
hydraPlatforms = []; # It's huge ATM, about 18 GB.
|
2021-01-15 07:07:56 +00:00
|
|
|
maintainers = [ lib.maintainers.farlion ];
|
2021-01-25 16:06:31 +00:00
|
|
|
broken = true;
|
2019-08-10 11:56:41 +01:00
|
|
|
};
|
|
|
|
}
|