Merge pull request #18769 from groxxda/monetdb
monetdb: remove because it's package is dead since 4 years (8020c37
)
This commit is contained in:
commit
e453c62885
5 changed files with 2 additions and 133 deletions
|
@ -140,7 +140,7 @@
|
|||
ngircd = 112;
|
||||
btsync = 113;
|
||||
minecraft = 114;
|
||||
monetdb = 115;
|
||||
#monetdb = 115; # unused (not packaged), removed 2016-09-19
|
||||
rippled = 116;
|
||||
murmur = 117;
|
||||
foundationdb = 118;
|
||||
|
@ -395,7 +395,7 @@
|
|||
#ngircd = 112; # unused
|
||||
btsync = 113;
|
||||
#minecraft = 114; # unused
|
||||
monetdb = 115;
|
||||
#monetdb = 115; # unused (not packaged), removed 2016-09-19
|
||||
#ripped = 116; # unused
|
||||
#murmur = 117; # unused
|
||||
foundationdb = 118;
|
||||
|
|
|
@ -145,7 +145,6 @@
|
|||
./services/databases/hbase.nix
|
||||
./services/databases/influxdb.nix
|
||||
./services/databases/memcached.nix
|
||||
./services/databases/monetdb.nix
|
||||
./services/databases/mongodb.nix
|
||||
./services/databases/mysql.nix
|
||||
./services/databases/neo4j.nix
|
||||
|
|
|
@ -1,88 +0,0 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.services.monetdb;
|
||||
monetdbUser = "monetdb";
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
|
||||
###### interface
|
||||
|
||||
options = {
|
||||
|
||||
services.monetdb = {
|
||||
|
||||
enable = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether to enable MonetDB database server.";
|
||||
};
|
||||
|
||||
package = mkOption {
|
||||
type = types.path;
|
||||
description = "MonetDB package to use.";
|
||||
};
|
||||
|
||||
dbfarmDir = mkOption {
|
||||
type = types.path;
|
||||
default = "/var/lib/monetdb";
|
||||
description = ''
|
||||
Specifies location of Monetdb dbfarm (keeps database and auxiliary files).
|
||||
'';
|
||||
};
|
||||
|
||||
port = mkOption {
|
||||
default = "50000";
|
||||
example = "50000";
|
||||
description = "Port to listen on.";
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
|
||||
###### implementation
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
|
||||
users.extraUsers.monetdb =
|
||||
{ name = monetdbUser;
|
||||
uid = config.ids.uids.monetdb;
|
||||
description = "monetdb user";
|
||||
home = cfg.dbfarmDir;
|
||||
};
|
||||
|
||||
users.extraGroups.monetdb.gid = config.ids.gids.monetdb;
|
||||
|
||||
environment.systemPackages = [ cfg.package ];
|
||||
|
||||
systemd.services.monetdb =
|
||||
{ description = "MonetDB Server";
|
||||
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
after = [ "network.target" ];
|
||||
|
||||
path = [ cfg.package ];
|
||||
|
||||
preStart =
|
||||
''
|
||||
# Initialise the database.
|
||||
if ! test -e ${cfg.dbfarmDir}/.merovingian_properties; then
|
||||
mkdir -m 0700 -p ${cfg.dbfarmDir}
|
||||
chown -R ${monetdbUser} ${cfg.dbfarmDir}
|
||||
${cfg.package}/bin/monetdbd create ${cfg.dbfarmDir}
|
||||
${cfg.package}/bin/monetdbd set port=${cfg.port} ${cfg.dbfarmDir}
|
||||
fi
|
||||
'';
|
||||
|
||||
serviceConfig.ExecStart = "${cfg.package}/bin/monetdbd start -n ${cfg.dbfarmDir}";
|
||||
|
||||
serviceConfig.ExecStop = "${cfg.package}/bin/monetdbd stop ${cfg.dbfarmDir}";
|
||||
|
||||
unitConfig.RequiresMountsFor = "${cfg.dbfarmDir}";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
{ composableDerivation, fetchurl, pcre, openssl, readline, libxml2, geos, apacheAnt, jdk5 }:
|
||||
|
||||
let inherit (composableDerivation) edf; in
|
||||
|
||||
composableDerivation.composableDerivation {} {
|
||||
|
||||
name = "monetdb-2009-05-01";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://monetdb.cwi.nl/downloads/sources/May2009-SP1/MonetDB-May2009-SuperBall-SP1.tar.bz2;
|
||||
sha256 = "0r794snnwa4m0x57nv8cgfdxwb689946c1mi2s44wp4iljka2ryj";
|
||||
};
|
||||
|
||||
flags = edf { name = "geom"; enable = { buildInputs = [geos]; }; }
|
||||
// {
|
||||
java = { buildInputs = [ (apacheAnt.override {jdk = jdk5;}) jdk5 /* must be 1.5 */ ]; };
|
||||
/* perl TODO export these (SWIG only if its present) HAVE_PERL=1 HAVE_PERL_DEVEL=1 HAVE_PERL_SWIG=1 */
|
||||
};
|
||||
|
||||
buildInputs = [ pcre
|
||||
openssl readline libxml2 ]; # optional python perl php java ?
|
||||
|
||||
cfg = {
|
||||
geomSupport = true;
|
||||
javaSupport = true;
|
||||
};
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
mkdir $TMP/build
|
||||
sh monetdb-install.sh --build=$TMP/build --prefix=$out --enable-sql --enable-xquery
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "A open-source database system for high-performance applications in data mining, OLAP, GIS, XML Query, text and multimedia retrieval";
|
||||
homepage = http://monetdb.cwi.nl/;
|
||||
license = "MonetDB Public License"; # very similar to Mozilla public license (MPL) Version see 1.1 http://monetdb.cwi.nl/Legal/MonetDBLicense-1.1.html
|
||||
};
|
||||
}
|
|
@ -10552,8 +10552,6 @@ in
|
|||
|
||||
rpcbind = callPackage ../servers/rpcbind { };
|
||||
|
||||
#monetdb = callPackage ../servers/sql/monetdb { };
|
||||
|
||||
mariadb = callPackage ../servers/sql/mariadb {
|
||||
inherit (darwin) cctools;
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) CoreServices;
|
||||
|
|
Loading…
Reference in a new issue