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

31 lines
760 B
Nix
Raw Normal View History

2018-11-16 23:18:55 +01:00
{ stdenv, fetchurl, pkgconfig, file
, bison, openssl, readline, bzip2
}:
let
2018-11-16 23:18:55 +01:00
version = "11.31.11";
in stdenv.mkDerivation rec {
name = "monetdb-${version}";
src = fetchurl {
url = "https://dev.monetdb.org/downloads/sources/archive/MonetDB-${version}.tar.bz2";
2018-11-16 23:18:55 +01:00
sha256 = "0x504jdxnqpxln6b69dqagzm2zknf11lykckmydzi6vapfc5msd3";
};
2018-11-16 23:18:55 +01:00
postPatch = ''
sed -i "s,/usr/bin/file,${file}/bin/file," configure
'';
nativeBuildInputs = [ pkgconfig file ];
buildInputs = [ bison openssl readline bzip2 ];
meta = with stdenv.lib; {
description = "An open source database system";
homepage = https://www.monetdb.org/;
license = licenses.mpl20;
platforms = platforms.unix;
maintainers = [ maintainers.StillerHarpo ];
};
}