Commit | Line | Data |
---|---|---|
9b7ee28d AP |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Andy Patterson <ajpatter@uwaterloo.ca> | |
c2c5b115 | 3 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
9b7ee28d AP |
4 | ;;; |
5 | ;;; This file is part of GNU Guix. | |
6 | ;;; | |
7 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
8 | ;;; under the terms of the GNU General Public License as published by | |
9 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
10 | ;;; your option) any later version. | |
11 | ;;; | |
12 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
13 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | ;;; GNU General Public License for more details. | |
16 | ;;; | |
17 | ;;; You should have received a copy of the GNU General Public License | |
18 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
19 | ||
20 | (define-module (gnu packages sml) | |
21 | #:use-module (gnu packages lesstif) | |
22 | #:use-module (gnu packages libffi) | |
23 | #:use-module (gnu packages multiprecision) | |
24 | #:use-module (gnu packages xorg) | |
25 | #:use-module (guix build-system gnu) | |
26 | #:use-module (guix download) | |
27 | #:use-module ((guix licenses) #:prefix license:) | |
28 | #:use-module (guix packages)) | |
29 | ||
30 | (define-public polyml | |
31 | (package | |
32 | (name "polyml") | |
c2c5b115 | 33 | (version "5.7.1") |
9b7ee28d AP |
34 | (source |
35 | (origin | |
36 | (method url-fetch) | |
37 | (uri (string-append "https://github.com/polyml/polyml/archive/v" | |
38 | version ".tar.gz")) | |
39 | (sha256 | |
c2c5b115 | 40 | (base32 "0a3hcv80p9j0fny6726kvgmzjzdmak9xw7f7rv8sxv96nhjdi3fi")) |
9b7ee28d AP |
41 | (file-name (string-append name "-" version ".tar.gz")))) |
42 | (build-system gnu-build-system) | |
43 | (inputs | |
44 | `(("gmp" ,gmp) | |
45 | ("lesstif",lesstif) | |
46 | ("libffi" ,libffi) | |
47 | ("libx11" ,libx11) | |
48 | ("libxt" ,libxt))) | |
49 | (arguments | |
50 | '(#:configure-flags | |
51 | (list "--with-system-libffi=yes" | |
52 | "--with-x=yes" | |
53 | "--with-threads=yes" | |
54 | "--with-gmp=yes") | |
55 | #:phases | |
56 | (modify-phases %standard-phases | |
57 | (add-after 'build 'build-compiler | |
58 | (lambda* (#:key make-flags parallel-build? #:allow-other-keys) | |
59 | (define flags | |
60 | (if parallel-build? | |
61 | (cons (format #f "-j~d" (parallel-job-count)) | |
62 | make-flags) | |
63 | make-flags)) | |
64 | (apply system* "make" (append flags (list "compiler")))))))) | |
65 | (home-page "http://www.polyml.org/") | |
66 | (synopsis "Standard ML implementation") | |
67 | (description "Poly/ML is a Standard ML implementation. It is fully | |
68 | compatible with the ML97 standard. It includes a thread library, a foreign | |
69 | function interface, and a symbolic debugger.") | |
70 | ;; Some source files specify 'or any later version'; some don't | |
71 | (license | |
72 | (list license:lgpl2.1 | |
73 | license:lgpl2.1+)))) |