2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, python3
|
2020-04-24 23:36:52 +00:00
|
|
|
, bison, openssl, readline, bzip2
|
|
|
|
}:
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "monetdb";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "11.43.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-Pgh2gqsZnDEOBs2t7PoRWXZ9hSPcGRL0YL4QSP8dLL8=";
|
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 = ''
|
|
|
|
rm $out/bin/monetdb_mtest.sh
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|