GNU bug report logs - #58898
[PATCH] gnu: Add carp.

Previous Next

Package: guix-patches;

Reported by: jgart <jgart <at> dismail.de>

Date: Sun, 30 Oct 2022 16:03:02 UTC

Severity: normal

Tags: patch

Done: Raghav Gururajan <rg <at> raghavgururajan.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Raghav Gururajan <rg <at> raghavgururajan.name>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#58898: closed ([PATCH] gnu: Add carp.)
Date: Sat, 12 Nov 2022 09:08:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 12 Nov 2022 04:07:38 -0500
with message-id <542f4e50-b407-f8dc-eee2-313bc9efe3c9 <at> raghavgururajan.name>
and subject line Re: [PATCH] gnu: Add carp.
has caused the debbugs.gnu.org bug report #58898,
regarding [PATCH] gnu: Add carp.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
58898: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58898
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jgart <jgart <at> dismail.de>
To: guix-patches <at> gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: [PATCH] gnu: Add carp.
Date: Sun, 30 Oct 2022 11:02:24 -0500
* gnu/packages/lisp.scm (carp): New variable.
---
 gnu/packages/lisp.scm | 57 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 4899943ba8..8957cc49fc 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -55,6 +55,7 @@ (define-module (gnu packages lisp)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system ant)
   #:use-module (guix build-system asdf)
+  #:use-module (guix build-system haskell)
   #:use-module (guix build-system trivial)
   #:use-module (gnu packages admin)
   #:use-module (gnu packages base)
@@ -71,10 +72,14 @@ (define-module (gnu packages lisp)
   #:use-module (gnu packages gl)
   #:use-module (gnu packages glib)
   #:use-module (gnu packages groff)
+  #:use-module (gnu packages haskell-check)
+  #:use-module (gnu packages haskell-web)
+  #:use-module (gnu packages haskell-xyz)
   #:use-module (gnu packages libffcall)
   #:use-module (gnu packages libffi)
   #:use-module (gnu packages libsigsegv)
   #:use-module (gnu packages linux)
+  #:use-module (gnu packages llvm)
   #:use-module (gnu packages m4)
   #:use-module (gnu packages maths)
   #:use-module (gnu packages multiprecision)
@@ -1268,6 +1273,58 @@ (define-public janet
 assembler, PEG) is less than 1MB.")
     (license license:expat)))
 
+(define-public carp
+  (package
+    (name "carp")
+    (version "0.5.5")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/carp-lang/Carp")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "14jdnv0ljqvpr9ych1plfw7hp5q57a8j1bv8h3v345x06z783d07"))))
+    (build-system haskell-build-system)
+    (arguments
+      `(#:phases
+         (modify-phases %standard-phases
+           ;; Carp looks inside the sources checkout to know where to
+           ;; find its core libraries and other files.
+           ;; Carp emits C code and tries to compile it with an external
+           ;; C compiler. On Linux it defaults to clang.
+           (add-after 'install 'set-carp-dir-and-path
+             (lambda* (#:key inputs outputs #:allow-other-keys)
+               (let ((out (assoc-ref outputs "out"))
+                     (sources (assoc-ref inputs "source"))
+                     (clang (assoc-ref inputs "clang")))
+                 (wrap-program (string-append out "/bin/carp")
+                   `("CARP_DIR" = (,sources))
+                   `("PATH" = (,(string-append clang "/bin"))))
+                 (wrap-program (string-append out "/bin/carp-header-parse")
+                   `("CARP_DIR" = (,sources))
+                   `("PATH" = (,(string-append clang "/bin"))))))))))
+    (native-inputs (list ghc-hunit))
+    (inputs (list bash-minimal
+                  clang
+                  ghc-blaze-markup
+                  ghc-blaze-html
+                  ghc-split
+                  ghc-ansi-terminal
+                  ghc-cmark
+                  ghc-edit-distance
+                  ghc-hashable
+                  ghc-open-browser
+                  ghc-optparse-applicative))
+    (home-page "https://carp-lang.org/")
+    (synopsis "Statically typed Lisp without a garbage collector")
+    (description
+"@code{carp} is a programming language designed to work well for
+interactive and performance sensitive use cases like games, sound
+synthesis and visualizations.")
+    (license license:asl2.0)))
+
 (define-public lisp-repl-core-dumper
   (package
     (name "lisp-repl-core-dumper")
-- 
2.38.1



[Message part 3 (message/rfc822, inline)]
From: Raghav Gururajan <rg <at> raghavgururajan.name>
To: 58898-done <at> debbugs.gnu.org
Cc: jgart <jgart <at> dismail.de>
Subject: Re: [PATCH] gnu: Add carp.
Date: Sat, 12 Nov 2022 04:07:38 -0500
[Message part 4 (text/plain, inline)]
Pushed as 0209ee0b55 to master.

Thanks for the patch.

Regards,
RG.
[OpenPGP_signature (application/pgp-signature, attachment)]

This bug report was last modified 2 years and 242 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.