diff options
| author | Herman Rimm <herman@rimm.ee> | 2025-12-11 19:54:56 +0100 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2026-05-17 14:32:41 +0100 |
| commit | 74c43337175dd3cbee7414bae7b2e970ff53f3ed (patch) | |
| tree | 82be46abd35175f55a560abbf4d6531b52bc01f6 /gnu/packages | |
| parent | 67fd8273f03f0d8275b167f7b466c70d1faa8ed8 (diff) | |
gnu: hugs: Move to (gnu packages haskell).
* gnu/packages/hugs.scm (hugs): Move from here ...
* gnu/packages/haskell.scm: ... to here.
Merges: guix/guix!4793
Relates-to: guix/guix#1134
Change-Id: I81b15e3215293420369b40c7a531c555db20ba63
Reviewed-by: Nguyễn Gia Phong <cnx@loang.net>
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
| -rw-r--r-- | gnu/packages/haskell.scm | 62 | ||||
| -rw-r--r-- | gnu/packages/hugs.scm | 72 |
2 files changed, 65 insertions, 69 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 4aa17d1718d..7639731edfc 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm | |||
| @@ -4,7 +4,7 @@ | |||
| 4 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> | 4 | ;;; Copyright © 2015 Paul van der Walt <paul@denknerd.org> |
| 5 | ;;; Copyright © 2015, 2019 Eric Bavier <bavier@member.fsf.org> | 5 | ;;; Copyright © 2015, 2019 Eric Bavier <bavier@member.fsf.org> |
| 6 | ;;; Copyright © 2016, 2018, 2019, 2021, 2026 Ludovic Courtès <ludo@gnu.org> | 6 | ;;; Copyright © 2016, 2018, 2019, 2021, 2026 Ludovic Courtès <ludo@gnu.org> |
| 7 | ;;; Copyright © 2016, 2017 Nikita <nikita@n0.is> | 7 | ;;; Copyright © 2013, 2016, 2017 Nikita <nikita@n0.is> |
| 8 | ;;; Copyright © 2016, 2022, 2024 Efraim Flashner <efraim@flashner.co.il> | 8 | ;;; Copyright © 2016, 2022, 2024 Efraim Flashner <efraim@flashner.co.il> |
| 9 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2022 Ricardo Wurmus <rekado@elephly.net> | 9 | ;;; Copyright © 2015, 2016, 2017, 2018, 2019, 2020, 2022 Ricardo Wurmus <rekado@elephly.net> |
| 10 | ;;; Copyright © 2016, 2017 David Craven <david@craven.ch> | 10 | ;;; Copyright © 2016, 2017 David Craven <david@craven.ch> |
| @@ -116,6 +116,66 @@ | |||
| 116 | top of CLISP.") | 116 | top of CLISP.") |
| 117 | (license license:bsd-4)))) | 117 | (license license:bsd-4)))) |
| 118 | 118 | ||
| 119 | (define-public hugs | ||
| 120 | (package | ||
| 121 | (name "hugs") | ||
| 122 | (version "Sep2006") | ||
| 123 | (source | ||
| 124 | (origin | ||
| 125 | (method url-fetch) | ||
| 126 | (uri (string-append "https://www.haskell.org/hugs/downloads/2006-09/" | ||
| 127 | name "98-plus-" version ".tar.gz")) | ||
| 128 | (sha256 | ||
| 129 | (base32 | ||
| 130 | "1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma")) | ||
| 131 | (patches (search-patches "hugs-fix-build.patch")))) | ||
| 132 | (build-system gnu-build-system) | ||
| 133 | (arguments | ||
| 134 | `(#:phases | ||
| 135 | (modify-phases %standard-phases | ||
| 136 | (add-before 'configure 'fix-sh-n-cp | ||
| 137 | (lambda _ | ||
| 138 | (substitute* | ||
| 139 | '("configure" | ||
| 140 | "libraries/configure" | ||
| 141 | "packages/time/configure" | ||
| 142 | "packages/base/configure" | ||
| 143 | "packages/X11/configure" | ||
| 144 | "packages/HGL/configure" | ||
| 145 | "packages/OpenAL/configure" | ||
| 146 | "packages/OpenGL/configure" | ||
| 147 | "packages/network/configure" | ||
| 148 | "packages/unix/configure" | ||
| 149 | "packages/Cabal/tests/HSQL/configure" | ||
| 150 | "packages/ALUT/configure" | ||
| 151 | "packages/GLUT/configure" | ||
| 152 | "packages/base/cbits/execvpe.c" | ||
| 153 | "packages/base/System/Process/Internals.hs" | ||
| 154 | "packages/Cabal/Distribution/attic" | ||
| 155 | "packages/Cabal/Distribution/Simple/Register.hs" | ||
| 156 | "packages/Cabal/Distribution/Simple/Hugs.hs" | ||
| 157 | "tools/hugs-hc" | ||
| 158 | "src/machdep.c" | ||
| 159 | "libraries/Makefile.in") | ||
| 160 | (("/bin/sh") (which "sh"))) | ||
| 161 | (substitute* '("demos/Makefile.in" | ||
| 162 | "libraries/Makefile.in") | ||
| 163 | (("/bin/cp") (which "cp"))) | ||
| 164 | #t))) | ||
| 165 | #:tests? #f)) ; no test target | ||
| 166 | (native-inputs (list gcc-13)) | ||
| 167 | (home-page "https://www.haskell.org/hugs/") | ||
| 168 | (synopsis "Functional programming system based on Haskell 98") | ||
| 169 | (description | ||
| 170 | "Hugs 98 is an interpreter and programming environment for developing | ||
| 171 | Haskell programs. It provides an almost complete implementation of Haskell | ||
| 172 | 98, which includes expression and pattern syntax, primitives for monadic I/O, | ||
| 173 | with support for simple interactive programs, handle-based I/O, and exception | ||
| 174 | handling. Hugs has a nearly complete implementation of the Haskell module | ||
| 175 | system and supports a number of advanced extensions.") | ||
| 176 | (license (license:non-copyleft "file://License" | ||
| 177 | "See License in the distribution.")))) | ||
| 178 | |||
| 119 | ;; This package contains lots of generated .hc files containing C code to | 179 | ;; This package contains lots of generated .hc files containing C code to |
| 120 | ;; bootstrap the compiler without a Haskell compiler. The included .hc files | 180 | ;; bootstrap the compiler without a Haskell compiler. The included .hc files |
| 121 | ;; cover not just the compiler sources but also all Haskell libraries. | 181 | ;; cover not just the compiler sources but also all Haskell libraries. |
diff --git a/gnu/packages/hugs.scm b/gnu/packages/hugs.scm index c82c089b743..3bbfacd606f 100644 --- a/gnu/packages/hugs.scm +++ b/gnu/packages/hugs.scm | |||
| @@ -1,7 +1,4 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 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 | ;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net> | ||
| 5 | ;;; | 2 | ;;; |
| 6 | ;;; This file is part of GNU Guix. | 3 | ;;; This file is part of GNU Guix. |
| 7 | ;;; | 4 | ;;; |
| @@ -19,69 +16,8 @@ | |||
| 19 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | 16 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. |
| 20 | 17 | ||
| 21 | (define-module (gnu packages hugs) | 18 | (define-module (gnu packages hugs) |
| 22 | #:use-module (guix licenses) | 19 | #:use-module (guix deprecation) |
| 23 | #:use-module (guix packages) | 20 | #:use-module (gnu packages haskell)) |
| 24 | #:use-module (guix download) | ||
| 25 | #:use-module (guix build-system gnu) | ||
| 26 | #:use-module (gnu packages) | ||
| 27 | #:use-module (gnu packages gcc)) | ||
| 28 | 21 | ||
| 29 | (define-public hugs | 22 | ;; XXX: Deprecated on <2026-05-17>. |
| 30 | (package | 23 | (define-deprecated/public-alias hugs (@ (gnu packages haskell) hugs)) |
| 31 | (name "hugs") | ||
| 32 | (version "Sep2006") | ||
| 33 | (source | ||
| 34 | (origin | ||
| 35 | (method url-fetch) | ||
| 36 | (uri (string-append "https://www.haskell.org/hugs/downloads/2006-09/" | ||
| 37 | name "98-plus-" version ".tar.gz")) | ||
| 38 | (sha256 | ||
| 39 | (base32 | ||
| 40 | "1mdy4aq4campgmnpc2qwq7bsbfhaxfsqdghbyyz2wms4lnfcmyma")) | ||
| 41 | (patches (search-patches "hugs-fix-build.patch")))) | ||
| 42 | (build-system gnu-build-system) | ||
| 43 | (arguments | ||
| 44 | `(#:phases | ||
| 45 | (modify-phases %standard-phases | ||
| 46 | (add-before 'configure 'fix-sh-n-cp | ||
| 47 | (lambda _ | ||
| 48 | (substitute* | ||
| 49 | '("configure" | ||
| 50 | "libraries/configure" | ||
| 51 | "packages/time/configure" | ||
| 52 | "packages/base/configure" | ||
| 53 | "packages/X11/configure" | ||
| 54 | "packages/HGL/configure" | ||
| 55 | "packages/OpenAL/configure" | ||
| 56 | "packages/OpenGL/configure" | ||
| 57 | "packages/network/configure" | ||
| 58 | "packages/unix/configure" | ||
| 59 | "packages/Cabal/tests/HSQL/configure" | ||
| 60 | "packages/ALUT/configure" | ||
| 61 | "packages/GLUT/configure" | ||
| 62 | "packages/base/cbits/execvpe.c" | ||
| 63 | "packages/base/System/Process/Internals.hs" | ||
| 64 | "packages/Cabal/Distribution/attic" | ||
| 65 | "packages/Cabal/Distribution/Simple/Register.hs" | ||
| 66 | "packages/Cabal/Distribution/Simple/Hugs.hs" | ||
| 67 | "tools/hugs-hc" | ||
| 68 | "src/machdep.c" | ||
| 69 | "libraries/Makefile.in") | ||
| 70 | (("/bin/sh") (which "sh"))) | ||
| 71 | (substitute* '("demos/Makefile.in" | ||
| 72 | "libraries/Makefile.in") | ||
| 73 | (("/bin/cp") (which "cp"))) | ||
| 74 | #t))) | ||
| 75 | #:tests? #f)) ; no test target | ||
| 76 | (native-inputs (list gcc-13)) | ||
| 77 | (home-page "https://www.haskell.org/hugs/") | ||
| 78 | (synopsis "Functional programming system based on Haskell 98") | ||
| 79 | (description | ||
| 80 | "Hugs 98 is an interpreter and programming environment for developing | ||
| 81 | Haskell programs. It provides an almost complete implementation of Haskell | ||
| 82 | 98, which includes expression and pattern syntax, primitives for monadic I/O, | ||
| 83 | with support for simple interactive programs, handle-based I/O, and exception | ||
| 84 | handling. Hugs has a nearly complete implementation of the Haskell module | ||
| 85 | system and supports a number of advanced extensions.") | ||
| 86 | (license (non-copyleft "file://License" | ||
| 87 | "See License in the distribution.")))) | ||
