mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
35 lines
903 B
Nix
35 lines
903 B
Nix
{ lib, stdenv, fetchurl, cmake, python3
|
|
, bison, openssl, readline, bzip2
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "monetdb";
|
|
version = "11.41.13";
|
|
|
|
src = fetchurl {
|
|
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
|
|
sha256 = "sha256-42u/sWUEOlCGe9UaWnUQJJ39TIE6OBI/5P9sKxKvreM=";
|
|
};
|
|
|
|
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
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|