diff options
author | Christopher Baines <mail@cbaines.net> | 2017-08-22 11:11:43 +0100 |
---|---|---|
committer | Christopher Baines <christopher.baines@digital.cabinet-office.gov.uk> | 2019-05-30 18:18:19 +0100 |
commit | 975b46da4ec5950adcab56a189d42aa2fbbfdd3e (patch) | |
tree | 59df51b75f5a9b12dc8c2b0a61df7c97d956a2f7 /gnu | |
parent | add5ecfd68784e2e9596402a2bb0533d2fab6458 (diff) | |
download | gnu-guix-975b46da4ec5950adcab56a189d42aa2fbbfdd3e.tar gnu-guix-975b46da4ec5950adcab56a189d42aa2fbbfdd3e.tar.gz |
gnu: Add elasticsearch.
* gnu/packages/databases.scm (elasticsearch-2.4.6, elasticsearch): New
variables.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/databases.scm | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm index ad4698f24c..74d7e16fd2 100644 --- a/gnu/packages/databases.scm +++ b/gnu/packages/databases.scm @@ -74,6 +74,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) @@ -241,6 +242,72 @@ ElasticSearch server") (home-page "https://github.com/patientslikeme/es_dump_restore") (license license:expat))) +(define-public elasticsearch-5 + (package + (name "elasticsearch") + (version "5.6.16") + (source + (origin + (method url-fetch) + (uri (string-append + "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-" + version ".tar.gz")) + (sha256 + (base32 "0zy7awb2cm2fk3c7zc7v8b8pl0jw49awqwpa1jvilmvx6dcml0vb")))) + (build-system gnu-build-system) + (inputs + `(("jre" ,icedtea) + ("coreutils" ,coreutils) + ("inetutils" ,inetutils) + ("util-linux" ,util-linux) + ("procps" ,procps) + ("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 "procps") + "/bin") + ,(string-append (assoc-ref inputs "grep") + "/bin"))) + `("JAVA_HOME" = (,(assoc-ref inputs "jre")))) + #t)))))) + (home-page "") + (synopsis "") + (description "") + (license ""))) + +(define-public elasticsearch elasticsearch-5) + (define-public leveldb (package (name "leveldb") |