2024-08-17 22:29:43 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, python3, bison, openssl, readline, bzip2, nixosTests }:
|
2018-04-27 07:43:07 +00:00
|
|
|
|
2023-07-01 14:01:20 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "monetdb";
|
2024-10-15 17:29:32 +00:00
|
|
|
version = "11.51.3";
|
2018-04-27 07:43:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-01 14:01:20 +00:00
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${finalAttrs.version}.tar.bz2";
|
2024-10-15 17:29:32 +00:00
|
|
|
hash = "sha256-ql6J4e62sL/g6s6cr2xMoxmlsLyovapaGtpcQIZ9tOU=";
|
2018-04-27 07:43:07 +00:00
|
|
|
};
|
|
|
|
|
2023-07-01 14:01:20 +00:00
|
|
|
nativeBuildInputs = [ bison cmake python3 ];
|
|
|
|
buildInputs = [ openssl readline bzip2 ];
|
|
|
|
|
2018-11-16 22:18:55 +00:00
|
|
|
postPatch = ''
|
2020-10-23 18:30:17 +00:00
|
|
|
substituteInPlace cmake/monetdb-packages.cmake --replace \
|
|
|
|
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
|
|
|
|
'set(LINUX_DISTRO "nixos")'
|
2018-11-16 22:18:55 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-09 11:32:54 +00:00
|
|
|
postInstall = ''
|
2022-08-01 00:07:57 +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 \
|
2023-06-10 16:27:25 +00:00
|
|
|
$out/bin/malsample.pl \
|
|
|
|
$out/bin/Mconvert.py
|
2021-12-09 11:32:54 +00:00
|
|
|
'';
|
|
|
|
|
2024-08-17 22:29:43 +00:00
|
|
|
passthru.tests = { inherit (nixosTests) monetdb; };
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-27 07:43:07 +00:00
|
|
|
description = "Open source database system";
|
2020-03-02 16:10:13 +00:00
|
|
|
homepage = "https://www.monetdb.org/";
|
2018-04-27 07:43:07 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.StillerHarpo ];
|
|
|
|
};
|
2023-07-01 14:01:20 +00:00
|
|
|
})
|