2023-02-09 11:40:11 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, python3, bison, openssl, readline, bzip2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "monetdb";
|
2023-02-09 11:40:11 +00:00
|
|
|
version = "11.45.13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
2023-02-09 11:40:11 +00:00
|
|
|
sha256 = "sha256-TYTzC1oiU/YwrJNABwyA50qSB12cwrMurqYFVCtSAcc=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-10-27 00:29:36 +00:00
|
|
|
substituteInPlace cmake/monetdb-packages.cmake --replace \
|
|
|
|
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
|
|
|
|
'set(LINUX_DISTRO "nixos")'
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
postInstall = ''
|
2022-09-30 11:47:45 +00:00
|
|
|
rm $out/bin/monetdb_mtest.sh \
|
|
|
|
$out/bin/mktest.py \
|
|
|
|
$out/bin/sqlsample.php \
|
|
|
|
$out/bin/sqllogictest.py \
|
|
|
|
$out/bin/Mz.py \
|
|
|
|
$out/bin/Mtest.py \
|
|
|
|
$out/bin/sqlsample.pl \
|
|
|
|
$out/bin/malsample.pl
|
2021-12-19 01:06:50 +00:00
|
|
|
'';
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ bison openssl readline bzip2 ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An open source database system";
|
|
|
|
homepage = "https://www.monetdb.org/";
|
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.StillerHarpo ];
|
|
|
|
};
|
|
|
|
}
|