1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2020 Jesse Gibbons <jgibbons2357+guix@gmail.com>
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 piet)
20 #:use-module (guix packages)
21 #:use-module (guix download)
22 #:use-module ((guix licenses) #:prefix license:)
23 #:use-module (guix build-system gnu)
24 #:use-module (gnu packages gd)
25 #:use-module (gnu packages groff)
26 #:use-module (gnu packages image)
27 #:use-module (gnu packages tcl))
35 (uri (string-append "https://www.bertnase.de/npiet/npiet-"
39 "0nl59fhdqqr7nslxdirdn8nvlq5wws67c7jyx2ckbmxbc9h8bv9d"))))
40 (build-system gnu-build-system)
43 (modify-phases %standard-phases
44 (add-after 'install 'wrap-binaries
45 (lambda* (#:key outputs #:allow-other-keys)
46 (let ((out (assoc-ref outputs "out")))
47 (wrap-program (string-append out "/bin/npietedit")
48 `("PATH" ":" prefix (,(dirname (which "wish")))))
55 (native-inputs `(("groff" ,groff)))
56 (synopsis "Piet interpreter")
58 "Npiet is an interpreter for the piet programming language. Instead of
59 text, piet programs are pictures. Commands are determined based on changes in
62 This package includes:
64 @item npiet, a piet interpreter with debugging capabilities
65 @item npiet-foogol, a program that builds a piet program from foogol, an
67 @item npietedit, an editor for the piet programming language
69 (home-page "https://www.bertnase.de/npiet/")
70 (license license:gpl2+)))