[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/25: gnu: Add nqp.
From: |
guix-commits |
Subject: |
02/25: gnu: Add nqp. |
Date: |
Tue, 12 Mar 2019 16:21:31 -0400 (EDT) |
efraim pushed a commit to branch wip-perl6
in repository guix.
commit 74f9a63418fafc5022b6d1833457f57f8575a127
Author: Efraim Flashner <address@hidden>
Date: Sun Feb 24 20:27:23 2019 +0200
gnu: Add nqp.
* gnu/packages/perl6.scm (nqp): New variable.
---
gnu/packages/perl6.scm | 68 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 68 insertions(+)
diff --git a/gnu/packages/perl6.scm b/gnu/packages/perl6.scm
index 7e92c86..344bb4e 100644
--- a/gnu/packages/perl6.scm
+++ b/gnu/packages/perl6.scm
@@ -19,6 +19,7 @@
(define-module (gnu packages perl6)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix packages)
#:use-module (guix build-system perl)
#:use-module (gnu packages bdw-gc)
@@ -91,3 +92,70 @@ exceptions, continuations, runtime loading of code, big
integers and interfacing
with native libraries.
@end itemize")
(license license:artistic2.0)))
+
+(define-public nqp
+ (package
+ (name "nqp")
+ (version "2018.12")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/perl6/nqp.git")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1bwvyfyhirqi46p0j5m1ri98rxbfks8wc5amiaqwqyqq7x1l25xd"))
+ (modules '((guix build utils)))
+ (snippet
+ '(begin
+ (delete-file-recursively "3rdparty") #t))))
+ (build-system perl-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'patch-source-shebangs 'patch-more-shebangs
+ (lambda _
+ (substitute* '("tools/build/install-jvm-runner.pl.in"
+ "tools/build/gen-js-cross-runner.pl"
+ "tools/build/gen-js-runner.pl"
+ "tools/build/install-js-runner.pl"
+ "tools/build/install-moar-runner.pl"
+ "tools/build/gen-moar-runner.pl"
+ "t/nqp/111-spawnprocasync.t"
+ "t/nqp/113-run-command.t")
+ (("/bin/sh") (which "sh")))
+ #t))
+ (add-after 'unpack 'patch-source-date
+ (lambda _
+ (substitute* "tools/build/gen-version.pl"
+ (("gmtime") "gmtime(0)"))
+ #t))
+ (add-after 'unpack 'remove-failing-test
+ ;; One subtest fails for unknown reasons
+ (lambda _
+ (delete-file "t/nqp/019-file-ops.t")
+ #t))
+ (replace 'configure
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out"))
+ (moar (assoc-ref inputs "moarvm")))
+ (invoke "perl" "Configure.pl"
+ "--backends=moar"
+ "--with-moar" (string-append moar "/bin/moar")
+ "--prefix" out)))))))
+ (inputs
+ `(("moarvm" ,moarvm)))
+ (home-page "https://github.com/perl6/nqp")
+ (synopsis "Not Quite Perl")
+ (description "This is \"Not Quite Perl\" -- a lightweight Perl 6-like
+environment for virtual machines. The key feature of NQP is that it's designed
+to be a very small environment (as compared with, say, perl6 or Rakudo) and is
+focused on being a high-level way to create compilers and libraries for virtual
+machines like MoarVM, the JVM, and others.
+
+Unlike a full-fledged implementation of Perl 6, NQP strives to have as small a
+runtime footprint as it can, while still providing a Perl 6 object model and
+regular expression engine for the virtual machine.")
+ (license license:artistic2.0)))
- branch wip-perl6 created (now b9cc5a8), guix-commits, 2019/03/12
- 02/25: gnu: Add nqp.,
guix-commits <=
- 03/25: gnu: Add rakudo., guix-commits, 2019/03/12
- 01/25: gnu: Add moarvm., guix-commits, 2019/03/12
- 07/25: gnu: Add perl6-uri., guix-commits, 2019/03/12
- 08/25: gnu: Add perl6-json-fast., guix-commits, 2019/03/12
- 14/25: gnu: Add perl6-license-spdx., guix-commits, 2019/03/12
- 12/25: gnu: Add perl6-json-class., guix-commits, 2019/03/12
- 25/25: gnu: Add perl6-json., guix-commits, 2019/03/12
- 18/25: gnu: Add perl6-svg-plot., guix-commits, 2019/03/12
- 24/25: gnu: Add perl6-mime-base64., guix-commits, 2019/03/12
- 22/25: gnu: Add perl6-grammar-profiler-simple., guix-commits, 2019/03/12