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
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "monetdb";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "11.47.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-07-15 17:15:38 +00:00
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${finalAttrs.version}.tar.bz2";
|
|
|
|
hash = "sha256-0vhcPh4ZXCAKpgiSZstu6vBQv7VwOYc6qoz8dPkugNE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ bison cmake python3 ];
|
|
|
|
buildInputs = [ openssl readline bzip2 ];
|
|
|
|
|
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 \
|
2023-07-15 17:15:38 +00:00
|
|
|
$out/bin/malsample.pl \
|
|
|
|
$out/bin/Mconvert.py
|
2021-12-19 01:06:50 +00:00
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|