2020-10-23 19:30:17 +01:00
|
|
|
{ stdenv, fetchurl, cmake, python3
|
2018-11-16 22:18:55 +00:00
|
|
|
, bison, openssl, readline, bzip2
|
2018-05-10 11:58:23 +01:00
|
|
|
}:
|
2018-04-27 08:43:07 +01:00
|
|
|
|
2020-10-23 19:30:17 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "monetdb";
|
2020-11-25 12:49:23 +00:00
|
|
|
version = "11.39.7";
|
2018-04-27 08:43:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
2020-11-25 12:49:23 +00:00
|
|
|
sha256 = "0qb2hlz42400diahmsbflfjmfnzd5slm6761xhgvh8s4rjfqm21w";
|
2018-04-27 08:43:07 +01:00
|
|
|
};
|
|
|
|
|
2018-11-16 22:18:55 +00:00
|
|
|
postPatch = ''
|
2020-10-23 19:30:17 +01: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
|
|
|
'';
|
|
|
|
|
2020-10-23 19:30:17 +01:00
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
2018-11-16 22:18:55 +00:00
|
|
|
buildInputs = [ bison openssl readline bzip2 ];
|
2018-04-27 08:43:07 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An open source database system";
|
2020-03-02 16:10:13 +00:00
|
|
|
homepage = "https://www.monetdb.org/";
|
2018-04-27 08:43:07 +01:00
|
|
|
license = licenses.mpl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.StillerHarpo ];
|
|
|
|
};
|
|
|
|
}
|