From patchwork Sun Oct 30 16:02:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 44197 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id CF46B27BBEB; Sun, 30 Oct 2022 16:03:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 765A527BBE9 for ; Sun, 30 Oct 2022 16:03:09 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opAm8-00023T-Mi; Sun, 30 Oct 2022 12:03:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opAm7-0001zf-9Z for guix-patches@gnu.org; Sun, 30 Oct 2022 12:03:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opAm7-0004Zk-1g for guix-patches@gnu.org; Sun, 30 Oct 2022 12:03:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opAm6-0000dq-MB for guix-patches@gnu.org; Sun, 30 Oct 2022 12:03:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58898] [PATCH] gnu: Add carp. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Oct 2022 16:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58898 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58898@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16671457682443 (code B ref -1); Sun, 30 Oct 2022 16:03:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2022 16:02:48 +0000 Received: from localhost ([127.0.0.1]:38888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAlr-0000dL-Nm for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:02:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:48474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opAlp-0000dC-Ua for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:02:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opAlp-0001hW-GR for guix-patches@gnu.org; Sun, 30 Oct 2022 12:02:45 -0400 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opAlm-0004Xl-4F for guix-patches@gnu.org; Sun, 30 Oct 2022 12:02:43 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id e8920e92 for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=vgTXMRmLLH8sZ1qNwIAXVjv4lgZz19AM6vc3IgOWwwc=; b= np54Ie1hg8QHy0tjOekSGzfHy+WwQWtiUsUA4LOQRMY9ZhKNR9vzRtu3n2M88Vrz aPcNG+T39T8pVvhgO6lygMG1Y50U92pme1bnS4OhQcuiCeiPfuXQQH8ib2iIwWFW 3yer4H2UW5NgvVXOyawGJXAZvtdQ021XgwlmhzC90bdljd1rPM5pbNv2PZm9ThBX VU0GbOq4f/PGP5wJ9YlmzB/vpRNVCbQG8OqIuZDvlk4MKXDa1nEphu7O9R7cO0pN TP+SKsA/2g/zMRdpB8XeigBZ7CKkrha5feEO0+bzcZIcByeJ3FMaOMkrgZwCesJc YUOOtkK+d1TOcZVWw6psLA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 4147cc31 for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id d3b1d00d for ; Sun, 30 Oct 2022 17:02:39 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id fa963564 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:02:33 +0100 (CET) Date: Sun, 30 Oct 2022 11:02:24 -0500 Message-Id: <20221030160224.30625-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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")