Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

81 righe
3.5 KiB

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