diff options
| author | Brett Gilio <brettg@posteo.net> | 2019-12-13 21:46:26 -0600 |
|---|---|---|
| committer | Brett Gilio <brettg@gnu.org> | 2020-01-03 19:59:00 -0600 |
| commit | 3f37f3909712eb7269b6e8184c0d61bfc61b67f9 (patch) | |
| tree | ebb84174564b9178d0b3f707b0e3ab0326381ecb | |
| parent | d98e64b4e5b46a67b582df5032647bb169427d6d (diff) | |
gnu: Add swi-prolog.
* gnu/packages/prolog.scm (swi-prolog): New variable.
| -rw-r--r-- | gnu/packages/prolog.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/prolog.scm b/gnu/packages/prolog.scm index 7c344988d5a..20e61197319 100644 --- a/gnu/packages/prolog.scm +++ b/gnu/packages/prolog.scm | |||
| @@ -67,3 +67,46 @@ manner. It also features an interactive interpreter.") | |||
| 67 | (supported-systems (fold delete | 67 | (supported-systems (fold delete |
| 68 | %supported-systems | 68 | %supported-systems |
| 69 | '("armhf-linux" "mips64el-linux"))))) | 69 | '("armhf-linux" "mips64el-linux"))))) |
| 70 | |||
| 71 | ;; TODO: This current version of SWI-PROLOG using the | ||
| 72 | ;; tarball from the official website is completely self-contained | ||
| 73 | ;; such that all submodules are provided. Eventually replace this | ||
| 74 | ;; and manually patch those submodules. | ||
| 75 | (define-public swi-prolog | ||
| 76 | (package | ||
| 77 | (name "swi-prolog") | ||
| 78 | (version "8.0.3") | ||
| 79 | (source | ||
| 80 | (origin | ||
| 81 | (method url-fetch) | ||
| 82 | (uri (string-append "https://www.swi-prolog.org/download/stable/src/swipl-" | ||
| 83 | version ".tar.gz")) | ||
| 84 | (sha256 | ||
| 85 | (base32 | ||
| 86 | "1bnnwbdxnifb1qj42prsqhx8y0k2z596wgvh4bbnd0bw8w59rrff")))) | ||
| 87 | (build-system cmake-build-system) | ||
| 88 | (arguments | ||
| 89 | `(#:parallel-build? #f | ||
| 90 | #:tests? #t)) ; FIXME: | ||
| 91 | ;#:configure-flags | ||
| 92 | ; (list "-DINSTALL_DOCUMENTATION=OFF"))) ; FIXME: | ||
| 93 | (native-inputs | ||
| 94 | `(("zlib" ,zlib) | ||
| 95 | ("gmp" ,gmp) | ||
| 96 | ("readline" ,readline) | ||
| 97 | ;("texlive" ,texlive) | ||
| 98 | ("texinfo" ,texinfo) | ||
| 99 | ("libunwind" ,libunwind) | ||
| 100 | ("libjpeg", libjpeg) | ||
| 101 | ("libxft" ,libxft) | ||
| 102 | ("fontconfig" ,fontconfig) | ||
| 103 | ("perl" ,perl) | ||
| 104 | ("pkg-config" ,pkg-config) | ||
| 105 | ("openssl" ,openssl))) | ||
| 106 | (home-page "https://www.swi-prolog.org/") | ||
| 107 | (synopsis "ISO/Edinburgh-style Prolog interpreter") | ||
| 108 | (description "SWI-Prolog is a fast and powerful ISO/Edinburgh-style Prolog | ||
| 109 | compiler with a rich set of built-in predicates. It offers a fast, robust and | ||
| 110 | small environment which enables substantial applications to be developed with | ||
| 111 | it.") | ||
| 112 | (license #f))) ; TODO: | ||
