aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/lego.scm
blob: d47be5dfb45c7d90c34f27f3fc0a61b0975d8031 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
;;;
;;; This file is part of GNU Guix.
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages lego)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix download)
  #:use-module (guix packages)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages bison)
  #:use-module (gnu packages flex))

(define-public nqc
  (package
    (name "nqc")
    (version "3.1.r6")
    (source (origin
              (method url-fetch)
              (uri (string-append "http://bricxcc.sourceforge.net/nqc/release/"
                                  "nqc-" version ".tgz"))
              (sha256
               (base32
                "0rp7pzr8xrdxpv75c2mi8zszzz2ypli4vvzxiic7mbrryrafdmdz"))))
    (build-system gnu-build-system)
    (native-inputs
     `(("bison" ,bison)
       ("flex" ,flex)))
    (arguments
     '(#:tests? #f                      ;no tests
       #:make-flags (list (string-append "PREFIX=" %output))
       #:phases (modify-phases %standard-phases
                  (delete 'configure)
                  (add-before 'build 'rm-generated
                    ;; Regenerating compiler/lexer.cpp avoids an 'undefined
                    ;; reference to `isatty(int)'' error.
                    (lambda _
                      (for-each delete-file
                                '("compiler/lexer.cpp"
                                  "compiler/parse.cpp"))
                      #t))
                  (add-after 'unpack 'deal-with-tarbomb
                    (lambda _
                      (chdir "..")      ;tarbomb
                      #t)))))
    (home-page "http://bricxcc.sourceforge.net/nqc/")
    (synopsis "C-like language for Lego's MINDSTORMS")
    (description
     "Not Quite C (NQC) is a simple language for programming several Lego
MINDSTORMS products.  The preprocessor and control structures of NQC are very
similar to C.  NQC is not a general purpose language -- there are many
restrictions that stem from limitations of the standard RCX firmware.")
    (license license:mpl1.0)))
it/THANKS?id=7a5c329b920999e4eaaaf1d78bed3b403db4478e'>Thank Marek.Ludovic Courtès 2014-07-16Update 'THANKS'....John Darrington 2014-07-05Thank Taylan and Alex.Ludovic Courtès 2014-06-17Thank Benno.Ludovic Courtès 2014-06-09Thank Carlos.Ludovic Courtès 2014-01-03Thank Niels.Ludovic Courtès 2013-12-30Thank Kete.Ludovic Courtès 2013-10-14Thank Jeffrin and David.Ludovic Courtès 2013-10-06Update 'AUTHORS'....Ludovic Courtès 2013-09-21Thank Cyrill.Ludovic Courtès 2013-09-12Thank Matthias and Yutaka.Ludovic Courtès 2013-08-24gnu: Add pspp....Andreas Enge 2013-08-24gnu: Add libextractor....Andreas Enge 2013-07-15Thank the translators.Ludovic Courtès 2013-07-04Import (guix hash) in build-aux/download.scm....Ludovic Courtès 2013-06-01Fix name of Alexandru.Ludovic Courtès 2013-05-30Thanks, Cojocaru.Ludovic Courtès 2013-02-05Thank Lluís and Daniel.Ludovic Courtès 2013-01-27Update `AUTHORS' and `THANKS'.Ludovic Courtès 2013-01-23Update `THANKS'.Ludovic Courtès 2013-01-20Update `THANKS'.Ludovic Courtès 2013-01-18Move Andreas to `AUTHORS'.Ludovic Courtès 2012-12-09Update `THANKS'.Ludovic Courtès