1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2016 Nikita <nikita@n0.is>
3 ;;; Copyright © 2019 Tobias Geerinckx-Rice <me@tobias.gr>
4 ;;; Copyright © 2020 Hendursaga <hendursaga@yahoo.com>
5 ;;; Copyright © 2020 Leo Prikler <leo.prikler@student.tugraz.at>
7 ;;; This file is part of GNU Guix.
9 ;;; GNU Guix is free software; you can redistribute it and/or modify it
10 ;;; under the terms of the GNU General Public License as published by
11 ;;; the Free Software Foundation; either version 3 of the License, or (at
12 ;;; your option) any later version.
14 ;;; GNU Guix is distributed in the hope that it will be useful, but
15 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
16 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 ;;; GNU General Public License for more details.
19 ;;; You should have received a copy of the GNU General Public License
20 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
22 (define-module (gnu packages esolangs)
23 #:use-module (gnu packages)
24 #:use-module (gnu packages bison)
25 #:use-module (gnu packages flex)
26 #:use-module (gnu packages ncurses)
27 #:use-module (gnu packages python)
28 #:use-module (gnu packages readline)
29 #:use-module (guix build-system cmake)
30 #:use-module (guix build-system copy)
31 #:use-module (guix build-system gnu)
32 #:use-module (guix download)
33 #:use-module (guix git-download)
34 #:use-module ((guix licenses) #:prefix license:)
35 #:use-module (guix packages))
44 (url "https://github.com/VorpalBlade/cfunge")
46 (file-name (git-file-name name version))
49 "18ir0h10vxdb5jb57w5hjbgi8spjxg9x2148agadhhmbhsja02m7"))))
50 (build-system cmake-build-system)
52 ;; The tests are not designed to be run and evaluated automatically.
55 `(("ncurses" ,ncurses)))
56 (home-page "https://github.com/VorpalBlade/cfunge")
57 (synopsis "Fast conforming Befunge93/98/109 interpreter in C")
58 (description "@command{cfunge} is a fast conforming Befunge93/98/109 interpreter
59 written in C. It supports several @dfn{fingerprints} (opt-in language extensions
60 identified by unique ID codes).")
61 (license license:gpl3)))
63 (define-public lolcode-lci
71 (url "https://github.com/justinmeza/lci")
72 (commit (string-append "v" version))))
73 (file-name (git-file-name name version))
75 (base32 "0syw60b93iajgh91ffchirwwhm2kix2753ibx845kyrhzggmdh2l"))))
76 (build-system cmake-build-system)
78 `(("readline" ,readline)))
80 `(("python-2" ,python-2))) ; for the tests
81 (synopsis "LOLCODE interpreter written in C")
83 "@code{lci} is a LOLCODE interpreter written in C and is designed to be
84 correct, portable, fast, and precisely documented.
86 @item correct: Every effort has been made to test lci's conformance to the
87 LOLCODE language specification. Unit tests come packaged with the lci source code.
88 @item portable: lci follows the widely ported ANSI C specification allowing it
89 to compile on a broad range of systems.
90 @item fast: Much effort has gone into producing simple and efficient code
91 whenever possible to the extent that the above points are not compromized.
93 (home-page "http://lolcode.org/")
94 (license license:gpl3+)))
96 (define-public shakespeare-spl
98 (name "shakespeare-spl")
102 (uri (string-append "mirror://sourceforge/shakespearelang/spl-"
106 "1lxpfhv01kcwy4l4xgx7j765g8g0v74jns0cr908nfw55h5fy1hj"))
109 "shakespeare-spl-fix-grammar.patch"))))
110 (build-system copy-build-system)
112 `(#:imported-modules (,@%gnu-build-system-modules
113 (guix build copy-build-system))
114 #:modules ((guix build copy-build-system)
115 ((guix build gnu-build-system) #:prefix gnu:)
117 #:install-plan '(("spl/bin" "bin")
119 ("spl/include" "include"))
121 (modify-phases %standard-phases
122 (add-before 'install 'build
123 (assoc-ref gnu:%standard-phases 'build)))))
127 (home-page "http://shakespearelang.sourceforge.net/")
128 (synopsis "Write programs like Shakespearean plays")
129 (description "Shakespeare is a programming language with the design goal
130 of making programs read like plays. The characters in the play are variables.
131 If you want to assign a character, let's say Juliet, a positive value, you put
132 her and another character on the stage and let that character praise Juliet.")
133 (license license:gpl2+)))