1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
4 ;;; This file is part of GNU Guix.
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.
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.
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/>.
19 (define-module (gnu packages smalltalk)
20 #:use-module (guix licenses)
21 #:use-module (guix packages)
22 #:use-module (guix download)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages zip))
26 (define-public smalltalk
33 (uri (string-append "mirror://gnu/smalltalk/smalltalk-"
37 "1k2ssrapfzhngc7bg1zrnd9n2vyxp9c9m70byvsma6wapbvib6l1"))))
38 (build-system gnu-build-system)
39 (inputs `(("zip" ,zip)))
41 `(#:phases (alist-cons-before
44 (let ((libc (assoc-ref %build-inputs "libc")))
45 (substitute* "libc.la.in"
46 (("@LIBC_SO_NAME@") "libc.so")
47 (("@LIBC_SO_DIR@") (string-append libc "/lib")))))
49 (home-page "https://www.gnu.org/software/smalltalk/")
50 (synopsis "Smalltalk environment")
52 "GNU Smalltalk is a free implementation of the Smalltalk-80 language.
54 In the Smalltalk language, everything is an object. This includes numbers,
55 executable procedures (methods), stack frames (called method contexts or block
56 contexts), etc. Each object is an \"instance\" of a \"class\". A class can
57 be thought of as a datatype and the set of functions that operate on that
58 datatype. An instance is a particular variable of that datatype. When you
59 want to perform an operation on an object, you send it a \"message\", and the
60 object performs an operation that corresponds to that message.")