diff options
Diffstat (limited to 'gnu/packages/databases.scm')
-rw-r--r-- | gnu/packages/databases.scm | 76 |
1 files changed, 70 insertions, 6 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index e853b62fdf..059d611f7f 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -71,6 +71,7 @@ #:use-module (gnu packages guile) #:use-module (gnu packages time) #:use-module (gnu packages golang) + #:use-module (gnu packages java) #:use-module (gnu packages jemalloc) #:use-module (gnu packages language) #:use-module (gnu packages libevent) @@ -357,6 +358,69 @@ ElasticSearch server") (home-page "https://github.com/patientslikeme/es_dump_restore") (license license:expat))) +(define-public elasticsearch-2.4.6 + (package + (name "elasticsearch") + (version "2.4.6") + (source + (origin + (method url-fetch) + (uri (string-append + "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-" + version ".tar.gz")) + (sha256 + (base32 "0vzw9kpyyyv3f1m5sy9zara6shc7xkgi5xm5qbzvfywijavlnzjz")))) + (build-system gnu-build-system) + (inputs + `(("jre" ,icedtea) + ("coreutils" ,coreutils) + ("inetutils" ,inetutils) + ("util-linux" ,util-linux) + ("grep" ,grep))) + (arguments + `(#:phases + (modify-phases %standard-phases + (delete 'check) + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (for-each + (lambda (dir) + (copy-recursively dir (string-append out "/" dir) + #:log (%make-void-port "w"))) + '("bin" "config" "lib" "modules")) + (for-each + (lambda (dir) + (mkdir (string-append out "/" dir))) + '("plugins")) + (for-each + delete-file + (find-files + (string-append out "/lib") + (lambda (name stat) + (or (string-contains name "freebsd") + (string-contains name "solaris"))))) + (wrap-program + (string-append out "/bin/elasticsearch") + `("PATH" = (,(string-append (assoc-ref inputs "util-linux") + "/bin") + ,(string-append (assoc-ref inputs "coreutils") + "/bin") + ,(string-append (assoc-ref inputs "inetutils") + "/bin") + ,(string-append (assoc-ref inputs "grep") + "/bin"))) + `("JAVA_HOME" = (,(assoc-ref inputs "jre")))) + #t)))))) + (home-page "") + (synopsis "") + (description "") + (license ""))) + +(define-public elasticsearch elasticsearch-2.4.6) + (define-public leveldb (package (name "leveldb") @@ -398,7 +462,7 @@ mapping from string keys to string values.") (define-public memcached (package (name "memcached") - (version "1.5.6") + (version "1.5.8") (source (origin (method url-fetch) @@ -406,7 +470,7 @@ mapping from string keys to string values.") "https://memcached.org/files/memcached-" version ".tar.gz")) (sha256 (base32 - "00szy9d4szaixi260dcd4846zci04y0sd47ia2lzg0bxkn2ywxcn")))) + "1ppnhsqv9047vm0rrmqla56y972f8qqjdb780iz6v922jjcc723k")))) (build-system gnu-build-system) (inputs `(("libevent" ,libevent) @@ -1107,7 +1171,7 @@ extremely small.") (define-public perl-dbi (package (name "perl-dbi") - (version "1.637") + (version "1.641") (source (origin (method url-fetch) (uri (string-append @@ -1115,7 +1179,7 @@ extremely small.") version ".tar.gz")) (sha256 (base32 - "1ikbsb6sb0bd2m1dqknl4vx7ikmnd41y0xq8np1l40g8jcjp2mr5")))) + "1hf2x29bnqf2x1v4bdhji802z7n2mbg7h1amv8gdkqyhrlrfa2am")))) (build-system perl-build-system) (synopsis "Database independent interface for Perl") (description "This package provides an database interface for Perl.") @@ -1487,14 +1551,14 @@ similar to BerkeleyDB, LevelDB, etc.") (define-public redis (package (name "redis") - (version "4.0.9") + (version "4.0.10") (source (origin (method url-fetch) (uri (string-append "http://download.redis.io/releases/redis-" version".tar.gz")) (sha256 (base32 - "0465bv6yxnwmas3wzg07vmrprv2pxhnr56hn5pxrybwf66y76kyz")))) + "194cydhv3hf4v95ifvjvsqrs4jn3ffrkg5lvxj5d3y04lwsp9dhx")))) (build-system gnu-build-system) (arguments '(#:tests? #f ; tests related to master/slave and replication fail |