depot/third_party/nixpkgs/pkgs/servers/sql/monetdb/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

30 lines
844 B
Nix

{ lib, stdenv, fetchurl, cmake, python3
, bison, openssl, readline, bzip2
}:
stdenv.mkDerivation rec {
pname = "monetdb";
version = "11.39.13";
src = fetchurl {
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
sha256 = "sha256-e30Vykwk6U83/0pS3OWPJ2Oq2SAtNc1S6c1ZO42k39c=";
};
postPatch = ''
substituteInPlace cmake/monetdb-packages.cmake --replace \
'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
'set(LINUX_DISTRO "nixos")'
'';
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 ];
};
}