5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchurl, cmake, python3
|
|
, bison, openssl, readline, bzip2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "monetdb";
|
|
version = "11.45.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
|
sha256 = "sha256-hIfi8YfZIExgv+z3YAxvkX8MiiGmOjB+/OryUoRPmDI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace cmake/monetdb-packages.cmake --replace \
|
|
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
|
|
'set(LINUX_DISTRO "nixos")'
|
|
'';
|
|
|
|
postInstall = ''
|
|
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 \
|
|
$out/bin/malsample.pl
|
|
'';
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
buildInputs = [ bison openssl readline bzip2 ];
|
|
|
|
meta = with lib; {
|
|
description = "An open source database system";
|
|
homepage = "https://www.monetdb.org/";
|
|
license = licenses.mpl20;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.StillerHarpo ];
|
|
};
|
|
}
|