nixpkgs/pkgs/servers/sql/monetdb/default.nix

31 lines
844 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, cmake, python3
2018-11-16 23:18:55 +01:00
, bison, openssl, readline, bzip2
}:
2020-10-23 20:30:17 +02:00
stdenv.mkDerivation rec {
2019-08-13 23:52:01 +02:00
pname = "monetdb";
2021-02-24 11:40:56 +01:00
version = "11.39.13";
src = fetchurl {
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
2021-02-24 11:40:56 +01:00
sha256 = "sha256-e30Vykwk6U83/0pS3OWPJ2Oq2SAtNc1S6c1ZO42k39c=";
};
2018-11-16 23:18:55 +01:00
postPatch = ''
2020-10-23 20:30:17 +02:00
substituteInPlace cmake/monetdb-packages.cmake --replace \
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
'set(LINUX_DISTRO "nixos")'
2018-11-16 23:18:55 +01:00
'';
2020-10-23 20:30:17 +02:00
nativeBuildInputs = [ cmake python3 ];
2018-11-16 23:18:55 +01:00
buildInputs = [ bison openssl readline bzip2 ];
meta = with lib; {
description = "An open source database system";
2020-03-02 17:10:13 +01:00
homepage = "https://www.monetdb.org/";
license = licenses.mpl20;
platforms = platforms.unix;
maintainers = [ maintainers.StillerHarpo ];
};
}