diff options
author | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
---|---|---|
committer | Franz Geffke <franz@pantherx.org> | 2023-11-06 20:08:14 +0000 |
commit | 47b4c9c854915df93893dbaa993accfacf9027fe (patch) | |
tree | 4f9b1742d63fcfbc94cc6b8d84f76c4d00c3a0b7 /px/packages/databases.scm | |
parent | 0b426d7b7ed8e176bf464ef9e0683f74a6c9d20f (diff) |
rewrite: apply guix-reference formatting; cleanup some module imports
Diffstat (limited to 'px/packages/databases.scm')
-rw-r--r-- | px/packages/databases.scm | 133 |
1 files changed, 65 insertions, 68 deletions
diff --git a/px/packages/databases.scm b/px/packages/databases.scm index 282298fc..eeb9d90 100644 --- a/px/packages/databases.scm +++ b/px/packages/databases.scm @@ -1,7 +1,6 @@ ;;; Databases Packages Module for PantherX -;;; Authors: Hamzeh Nasajpour (h.nasajpour@pantherx.org) -;;; Reza Alizadeh Majd (r.majd@pantherx.org) -;;; +;;; Hamzeh Nasajpour (h.nasajpour@pantherx.org) +;;; Reza Alizadeh Majd (r.majd@pantherx.org) (define-module (px packages databases) #:use-module (gnu packages) @@ -34,7 +33,8 @@ #:use-module (guix build-system python) #:use-module (guix build-system scons) #:use-module (guix utils) - #:use-module ((guix licenses) #:prefix license:) + #:use-module ((guix licenses) + #:prefix license:) #:use-module (nonguix build-system binary) #:use-module (px packages common) #:use-module (px packages python-xyz) @@ -46,106 +46,103 @@ (package (name "mongodb") (version "5.0.9") - (source (origin - (method url-fetch) - (uri (string-append "https://fastdl.mongodb.org/linux/" name - "-linux-x86_64-debian10-" version ".tgz")) - (sha256 (base32 "0ycav2jckl5v8mjaiddzll2i25z4lp8fpsg9ymcxpzyj3kxxip6q")))) + (source + (origin + (method url-fetch) + (uri (string-append "https://fastdl.mongodb.org/linux/" name + "-linux-x86_64-debian10-" version ".tgz")) + (sha256 + (base32 "0ycav2jckl5v8mjaiddzll2i25z4lp8fpsg9ymcxpzyj3kxxip6q")))) (build-system binary-build-system) (arguments - `(#:patchelf-plan - `(("bin/mongo" ("curl" "gcc" "gcc-toolchain" "openssl" "xz")) - ("bin/mongod" ("curl" "gcc" "gcc-toolchain" "openssl" "xz")) - ("bin/mongos" ("curl" "gcc" "gcc-toolchain" "openssl" "xz"))))) - (inputs - (list - curl - (list gcc "lib") - gcc-toolchain - openssl - xz)) + `(#:patchelf-plan `(("bin/mongo" ("curl" "gcc" "gcc-toolchain" "openssl" + "xz")) + ("bin/mongod" ("curl" "gcc" "gcc-toolchain" "openssl" + "xz")) + ("bin/mongos" ("curl" "gcc" "gcc-toolchain" "openssl" + "xz"))))) + (inputs (list curl + (list gcc "lib") gcc-toolchain openssl xz)) (home-page "https://www.mongodb.org") (synopsis "High performance and high availability document database") - (description "Mongo is a high-performance, high availability, schema-free + (description + "Mongo is a high-performance, high availability, schema-free document-oriented database. A key goal of MongoDB is to bridge the gap between key/value stores (which are fast and highly scalable) and traditional RDBMS systems (which are deep in functionality).") (license license:expat))) - (define-public sqlitecpp (package (name "sqlitecpp") (version "3.2.1") (source - (origin - (method url-fetch) - (uri (string-append - "https://github.com/SRombauts/SQLiteCpp/archive/" version ".tar.gz")) - (sha256 - (base32 - "14yn8bdnmh5bv2k85acm0yqjzgr90dmqxgvs5bw60x64h1b7vikh")))) + (origin + (method url-fetch) + (uri (string-append "https://github.com/SRombauts/SQLiteCpp/archive/" + version ".tar.gz")) + (sha256 + (base32 "14yn8bdnmh5bv2k85acm0yqjzgr90dmqxgvs5bw60x64h1b7vikh")))) (build-system cmake-build-system) (arguments - `(#:tests? #f)) - (native-inputs `( - ("pkg-config" ,pkg-config) - ("sqlite", sqlite))) + `(#:tests? #f)) + (native-inputs `(("pkg-config" ,pkg-config) + ("sqlite" ,sqlite))) (home-page "https://github.com/SRombauts/SQLiteCpp") - (synopsis "SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.") - (description "SQLiteC++ offers an encapsulation around the native C APIs of SQLite, with a few intuitive and well documented C++ classes.") + (synopsis + "SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.") + (description + "SQLiteC++ offers an encapsulation around the native C APIs of + SQLite, with a few intuitive and well documented C++ classes.") (license license:expat))) - (define-public px-database-utility (package (name "px-database-utility") (version "0.1.4") (source - (origin - (method url-fetch) - (uri (string-append "https://source.pantherx.org/" name "_v" version ".tgz")) - (sha256 (base32 "0qqgr8nvgxf3dp1wcaciiv4n4xr5akf3f7k2aiiihfa89h2v7kq1")))) + (origin + (method url-fetch) + (uri (string-append "https://source.pantherx.org/" name "_v" version + ".tgz")) + (sha256 + (base32 "0qqgr8nvgxf3dp1wcaciiv4n4xr5akf3f7k2aiiihfa89h2v7kq1")))) (build-system python-build-system) (arguments `(#:tests? #f)) - (inputs - `(("python-psycopg2" ,python-psycopg2))) - (native-inputs - `(("pkg-config" ,pkg-config))) + (inputs `(("python-psycopg2" ,python-psycopg2))) + (native-inputs `(("pkg-config" ,pkg-config))) (home-page "https://www.pantherx.org/") (synopsis "PantherX Database Utility") - (description "Easily dump (backup), restore and list PostgreSQL databases.") + (description + "Easily dump (backup), restore and list PostgreSQL databases.") (license license:expat))) - (define-public wiredtiger-2.9.2 (package (name "wiredtiger") (version "2.9.2") - (source (origin - (method url-fetch) - (uri (string-append - "http://source.wiredtiger.com/releases/wiredtiger-" - version ".tar.bz2")) - (sha256 - (base32 - "1n8qlhk9fcnan6w38i0lqdwm02bxm91nlzq1976qqmmv989nmmi2")))) + (source + (origin + (method url-fetch) + (uri (string-append "http://source.wiredtiger.com/releases/wiredtiger-" + version ".tar.bz2")) + (sha256 + (base32 "1n8qlhk9fcnan6w38i0lqdwm02bxm91nlzq1976qqmmv989nmmi2")))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib" "--enable-verbose") - #:phases - (modify-phases %standard-phases - (add-before 'check 'disable-test/fops - (lambda _ - ;; XXX: timed out after 3600 seconds of silence - (substitute* "Makefile" - (("test/fops") "")) - #t))))) - (inputs - `(("lz4" ,lz4) - ("zlib" ,zlib) - ("snappy" ,snappy))) + '(#:configure-flags '("--enable-lz4" "--with-builtins=snappy,zlib" + "--enable-verbose") + #:phases (modify-phases %standard-phases + (add-before 'check 'disable-test/fops + (lambda _ + ;; XXX: timed out after 3600 seconds of silence + (substitute* "Makefile" + (("test/fops") + "")) #t))))) + (inputs `(("lz4" ,lz4) + ("zlib" ,zlib) + ("snappy" ,snappy))) (home-page "http://source.wiredtiger.com/") (synopsis "NoSQL data engine") (description @@ -154,6 +151,6 @@ row-oriented storage (where all columns of a row are stored together), column-oriented storage (where columns are stored in groups, allowing for more efficient access and storage of column subsets) and log-structured merge trees (LSM), for sustained throughput under random insert workloads.") - (license license:gpl3) ; or GPL-2 + (license license:gpl3) ;or GPL-2 ;; configure.ac: WiredTiger requires a 64-bit build. (supported-systems '("x86_64-linux" "mips64el-linux" "aarch64-linux")))) |