2dcc61f4de7fce3f7bd59f305ec23d60b1a05df2
[jackhill/guix/guix.git] / gnu / packages / hugs.scm
1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
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 hugs)
21 #:use-module (guix licenses)
22 #:use-module (guix packages)
23 #:use-module (guix download)
24 #:use-module (guix build-system gnu))
25
26 (define-public hugs
27 (package
28 (name "hugs")
29 (version "Sep2006")
30 (source
31 (origin
32 (method url-fetch)
33 (uri (string-append "https://www.haskell.org/hugs/downloads/2006-09/"
34 name "98-plus-" version ".tar.gz"))
35 (sha256
36 (base32
37 "1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma"))))
38 (build-system gnu-build-system)
39 (arguments
40 `(#:phases (alist-cons-before
41 'configure 'fix-sh-n-cp
42 (lambda _
43 (substitute*
44 '("configure"
45 "libraries/configure"
46 "packages/time/configure"
47 "packages/base/configure"
48 "packages/X11/configure"
49 "packages/HGL/configure"
50 "packages/OpenAL/configure"
51 "packages/OpenGL/configure"
52 "packages/network/configure"
53 "packages/unix/configure"
54 "packages/Cabal/tests/HSQL/configure"
55 "packages/ALUT/configure"
56 "packages/GLUT/configure"
57 "packages/base/cbits/execvpe.c"
58 "packages/base/System/Process/Internals.hs"
59 "packages/Cabal/Distribution/attic"
60 "packages/Cabal/Distribution/Simple/Register.hs"
61 "packages/Cabal/Distribution/Simple/Hugs.hs"
62 "tools/hugs-hc"
63 "src/machdep.c"
64 "libraries/Makefile.in")
65 (("/bin/sh") (which "sh")))
66 (substitute* '("demos/Makefile.in"
67 "libraries/Makefile.in")
68 (("/bin/cp") (which "cp"))))
69 %standard-phases)
70 #:tests? #f)) ; no test target
71 (home-page "https://www.haskell.org/hugs/")
72 (synopsis "Functional programming system based on Haskell 98")
73 (description
74 "Hugs 98 is an interpreter and programming environment for developing
75 Haskell programs. It provides an almost complete implementation of Haskell
76 98, which includes expression and pattern syntax, primitives for monadic I/O,
77 with support for simple interactive programs, handle-based I/O, and exception
78 handling. Hugs has a nearly complete implementation of the Haskell module
79 system and supports a number of advanced extensions.")
80 (license (non-copyleft "file://License"
81 "See License in the distribution."))))