nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, fetchurl, cmake, python3
2, bison, openssl, readline, bzip2
3}:
4
5stdenv.mkDerivation rec {
6 pname = "monetdb";
7 version = "11.43.9";
8
9 src = fetchurl {
10 url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
11 sha256 = "sha256-DTpuL5caf4fmJMGq+1L3iyiSkLZYIUnejgJ/4LOk6kQ=";
12 };
13
14 postPatch = ''
15 substituteInPlace cmake/monetdb-packages.cmake --replace \
16 'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \
17 'set(LINUX_DISTRO "nixos")'
18 '';
19
20 postInstall = ''
21 rm $out/bin/monetdb_mtest.sh
22 '';
23
24 nativeBuildInputs = [ cmake python3 ];
25 buildInputs = [ bison openssl readline bzip2 ];
26
27 meta = with lib; {
28 description = "An open source database system";
29 homepage = "https://www.monetdb.org/";
30 license = licenses.mpl20;
31 platforms = platforms.unix;
32 maintainers = [ maintainers.StillerHarpo ];
33 };
34}