Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 40 lines 1.1 kB view raw
1{ lib, stdenv, fetchurl, cmake, python3, bison, openssl, readline, bzip2 }: 2 3stdenv.mkDerivation rec { 4 pname = "monetdb"; 5 version = "11.45.17"; 6 7 src = fetchurl { 8 url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2"; 9 sha256 = "sha256-sVRNnaklw2mHkTz8Kw6x8uPfdN+I1n1tOjHBslyMpGc="; 10 }; 11 12 postPatch = '' 13 substituteInPlace cmake/monetdb-packages.cmake --replace \ 14 'get_os_release_info(LINUX_DISTRO LINUX_DISTRO_VERSION)' \ 15 'set(LINUX_DISTRO "nixos")' 16 ''; 17 18 postInstall = '' 19 rm $out/bin/monetdb_mtest.sh \ 20 $out/bin/mktest.py \ 21 $out/bin/sqlsample.php \ 22 $out/bin/sqllogictest.py \ 23 $out/bin/Mz.py \ 24 $out/bin/Mtest.py \ 25 $out/bin/sqlsample.pl \ 26 $out/bin/malsample.pl \ 27 $out/bin/Mconvert.py 28 ''; 29 30 nativeBuildInputs = [ cmake python3 ]; 31 buildInputs = [ bison openssl readline bzip2 ]; 32 33 meta = with lib; { 34 description = "An open source database system"; 35 homepage = "https://www.monetdb.org/"; 36 license = licenses.mpl20; 37 platforms = platforms.unix; 38 maintainers = [ maintainers.StillerHarpo ]; 39 }; 40}