2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, python3
|
2018-11-16 22:18:55 +00:00
|
|
|
, bison, openssl, readline, bzip2
|
2018-05-10 10:58:23 +00:00
|
|
|
}:
|
2018-04-27 07:43:07 +00:00
|
|
|
|
2020-10-23 18:30:17 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "monetdb";
|
2022-03-04 05:27:21 +00:00
|
|
|
version = "11.43.9";
|
2018-04-27 07:43:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
2022-03-04 05:27:21 +00:00
|
|
|
sha256 = "sha256-DTpuL5caf4fmJMGq+1L3iyiSkLZYIUnejgJ/4LOk6kQ=";
|
2018-04-27 07:43:07 +00:00
|
|
|
};
|
|
|
|
|
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 = ''
|
|
|
|
rm $out/bin/monetdb_mtest.sh
|
|
|
|
'';
|
|
|
|
|
2020-10-23 18:30:17 +00:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2018-11-16 22:18:55 +00:00
|
|
|
buildInputs = [ bison openssl readline bzip2 ];
|
2018-04-27 07:43:07 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-04-27 07:43:07 +00:00
|
|
|
description = "An 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 ];
|
|
|
|
};
|
|
|
|
}
|