gnu: cvs-fast-export: Update to 1.56.
[jackhill/guix/guix.git] / gnu / packages / hugs.scm
CommitLineData
a6b4d213
NK
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
44877dcc 3;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
e32f8dad 4;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
a6b4d213
NK
5;;;
6;;; This file is part of GNU Guix.
7;;;
8;;; GNU Guix is free software; you can redistribute it and/or modify it
9;;; under the terms of the GNU General Public License as published by
10;;; the Free Software Foundation; either version 3 of the License, or (at
11;;; your option) any later version.
12;;;
13;;; GNU Guix is distributed in the hope that it will be useful, but
14;;; WITHOUT ANY WARRANTY; without even the implied warranty of
15;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16;;; GNU General Public License for more details.
17;;;
18;;; You should have received a copy of the GNU General Public License
19;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
20
21(define-module (gnu packages hugs)
22 #:use-module (guix licenses)
23 #:use-module (guix packages)
24 #:use-module (guix download)
e32f8dad
RW
25 #:use-module (guix build-system gnu)
26 #:use-module (gnu packages gcc))
a6b4d213
NK
27
28(define-public hugs
29 (package
30 (name "hugs")
31 (version "Sep2006")
32 (source
33 (origin
34 (method url-fetch)
44877dcc 35 (uri (string-append "https://www.haskell.org/hugs/downloads/2006-09/"
a6b4d213
NK
36 name "98-plus-" version ".tar.gz"))
37 (sha256
38 (base32
39 "1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma"))))
40 (build-system gnu-build-system)
41 (arguments
dc1d3cde
KK
42 `(#:phases
43 (modify-phases %standard-phases
44 (add-before 'configure 'fix-sh-n-cp
45 (lambda _
46 (substitute*
47 '("configure"
48 "libraries/configure"
49 "packages/time/configure"
50 "packages/base/configure"
51 "packages/X11/configure"
52 "packages/HGL/configure"
53 "packages/OpenAL/configure"
54 "packages/OpenGL/configure"
55 "packages/network/configure"
56 "packages/unix/configure"
57 "packages/Cabal/tests/HSQL/configure"
58 "packages/ALUT/configure"
59 "packages/GLUT/configure"
60 "packages/base/cbits/execvpe.c"
61 "packages/base/System/Process/Internals.hs"
62 "packages/Cabal/Distribution/attic"
63 "packages/Cabal/Distribution/Simple/Register.hs"
64 "packages/Cabal/Distribution/Simple/Hugs.hs"
65 "tools/hugs-hc"
66 "src/machdep.c"
67 "libraries/Makefile.in")
68 (("/bin/sh") (which "sh")))
69 (substitute* '("demos/Makefile.in"
70 "libraries/Makefile.in")
71 (("/bin/cp") (which "cp")))
72 #t)))
a6b4d213 73 #:tests? #f)) ; no test target
e32f8dad
RW
74 ;; FIXME: Fails to build with GCC 5.
75 (native-inputs `(("gcc" ,gcc-4.9)))
44877dcc 76 (home-page "https://www.haskell.org/hugs/")
a6b4d213
NK
77 (synopsis "Functional programming system based on Haskell 98")
78 (description
79 "Hugs 98 is an interpreter and programming environment for developing
80Haskell programs. It provides an almost complete implementation of Haskell
8198, which includes expression and pattern syntax, primitives for monadic I/O,
82with support for simple interactive programs, handle-based I/O, and exception
83handling. Hugs has a nearly complete implementation of the Haskell module
84system and supports a number of advanced extensions.")
166191b3
LC
85 (license (non-copyleft "file://License"
86 "See License in the distribution."))))