* [PATCH 0/2] gnu: Add NQC.
@ 2016-01-17 8:12 ericbavier
2016-01-17 8:12 ` [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0 ericbavier
2016-01-17 8:12 ` [PATCH 2/2] gnu: Add NQC ericbavier
0 siblings, 2 replies; 5+ messages in thread
From: ericbavier @ 2016-01-17 8:12 UTC (permalink / raw)
To: guix-devel; +Cc: Eric Bavier
From: Eric Bavier <bavier@member.fsf.org>
The following patches add a compiler suite for the Lego MINDSTORMS RCX, an old
bit of hardware but nonetheless fun to play with. I added it as a new module,
since there are many other bits of software that could be added for some of
the later Lego products, but I'd listen to suggestions of existing modules
where it might fit.
The license is interesting. There's no direct mention of specifically version
1.0 of the Mozilla Public License on
http://www.gnu.org/licenses/license-list.html, only indirectly through
https://www.gnu.org/licenses/license-list.html#NPL which is a superset of the
MPL.
Eric Bavier (2):
gnu: licenses: Add Mozilla Public License 1.0.
gnu: Add NQC.
gnu-system.am | 1 +
gnu/packages/lego.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++
guix/licenses.scm | 7 +++++-
3 files changed, 74 insertions(+), 1 deletion(-)
create mode 100644 gnu/packages/lego.scm
--
2.6.3
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0.
2016-01-17 8:12 [PATCH 0/2] gnu: Add NQC ericbavier
@ 2016-01-17 8:12 ` ericbavier
2016-01-20 22:39 ` Ludovic Courtès
2016-01-17 8:12 ` [PATCH 2/2] gnu: Add NQC ericbavier
1 sibling, 1 reply; 5+ messages in thread
From: ericbavier @ 2016-01-17 8:12 UTC (permalink / raw)
To: guix-devel; +Cc: Eric Bavier
From: Eric Bavier <bavier@member.fsf.org>
* guix/licenses.scm (mpl1.0): New variable.
---
guix/licenses.scm | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/guix/licenses.scm b/guix/licenses.scm
index 9ace7f5..fa11d98 100644
--- a/guix/licenses.scm
+++ b/guix/licenses.scm
@@ -49,7 +49,7 @@
imlib2
ipa
lgpl2.0 lgpl2.0+ lgpl2.1 lgpl2.1+ lgpl3 lgpl3+
- mpl1.1 mpl2.0
+ mpl1.0 mpl1.1 mpl2.0
ms-pl
ncsa
openldap2.8 openssl
@@ -302,6 +302,11 @@ at URI, which may be a file:// URI pointing the package's tree."
"https://www.gnu.org/licenses/lgpl.html"
"https://www.gnu.org/licenses/license-list#LGPLv3"))
+(define mpl1.0
+ (license "MPL 1.0"
+ "http://www.mozilla.org/MPL/1.0/"
+ "https://www.gnu.org/licenses/license-list.html#MPL"))
+
(define mpl1.1
(license "MPL 1.1"
"http://directory.fsf.org/wiki/License:MPLv1.1"
--
2.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] gnu: Add NQC.
2016-01-17 8:12 [PATCH 0/2] gnu: Add NQC ericbavier
2016-01-17 8:12 ` [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0 ericbavier
@ 2016-01-17 8:12 ` ericbavier
2016-01-20 22:36 ` Ludovic Courtès
1 sibling, 1 reply; 5+ messages in thread
From: ericbavier @ 2016-01-17 8:12 UTC (permalink / raw)
To: guix-devel; +Cc: Eric Bavier
From: Eric Bavier <bavier@member.fsf.org>
* gnu/packages/lego.scm: New file.
* gnu-system.am (GNU_SYSTEM_MODULES): Add it.
---
gnu-system.am | 1 +
gnu/packages/lego.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
create mode 100644 gnu/packages/lego.scm
diff --git a/gnu-system.am b/gnu-system.am
index 543a825..cddb635 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -177,6 +177,7 @@ GNU_SYSTEM_MODULES = \
gnu/packages/kodi.scm \
gnu/packages/language.scm \
gnu/packages/ldc.scm \
+ gnu/packages/lego.scm \
gnu/packages/less.scm \
gnu/packages/lesstif.scm \
gnu/packages/libcanberra.scm \
diff --git a/gnu/packages/lego.scm b/gnu/packages/lego.scm
new file mode 100644
index 0000000..d47be5d
--- /dev/null
+++ b/gnu/packages/lego.scm
@@ -0,0 +1,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)))
--
2.6.3
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] gnu: Add NQC.
2016-01-17 8:12 ` [PATCH 2/2] gnu: Add NQC ericbavier
@ 2016-01-20 22:36 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-01-20 22:36 UTC (permalink / raw)
To: ericbavier; +Cc: guix-devel, Eric Bavier
ericbavier@openmailbox.org skribis:
> From: Eric Bavier <bavier@member.fsf.org>
>
> * gnu/packages/lego.scm: New file.
> * gnu-system.am (GNU_SYSTEM_MODULES): Add it.
LGTM, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0.
2016-01-17 8:12 ` [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0 ericbavier
@ 2016-01-20 22:39 ` Ludovic Courtès
0 siblings, 0 replies; 5+ messages in thread
From: Ludovic Courtès @ 2016-01-20 22:39 UTC (permalink / raw)
To: ericbavier; +Cc: guix-devel, Eric Bavier
ericbavier@openmailbox.org skribis:
> From: Eric Bavier <bavier@member.fsf.org>
>
> * guix/licenses.scm (mpl1.0): New variable.
OK. Weird license choice, indeed.
Ludo’.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2016-01-20 22:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 8:12 [PATCH 0/2] gnu: Add NQC ericbavier
2016-01-17 8:12 ` [PATCH 1/2] gnu: licenses: Add Mozilla Public License 1.0 ericbavier
2016-01-20 22:39 ` Ludovic Courtès
2016-01-17 8:12 ` [PATCH 2/2] gnu: Add NQC ericbavier
2016-01-20 22:36 ` Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).