From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id UCSCDsXvXmMaKwEAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 22:42:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id OOq1DsXvXmNl7gAA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 22:42:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B54B2121CA for ; Sun, 30 Oct 2022 22:42:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opG4D-0002kS-0d; Sun, 30 Oct 2022 17:42:05 -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 1opG4A-0002jm-M8 for guix-patches@gnu.org; Sun, 30 Oct 2022 17:42:02 -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 1opG4A-0002AC-EV for guix-patches@gnu.org; Sun, 30 Oct 2022 17:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opG4A-0000cW-9T for guix-patches@gnu.org; Sun, 30 Oct 2022 17:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58898] [PATCH v5] gnu: Add carp. References: <20221030160224.30625-1-jgart@dismail.de> In-Reply-To: <20221030160224.30625-1-jgart@dismail.de> Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Oct 2022 21:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58898 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58898@debbugs.gnu.org Cc: Christine Lemmer-Webber , "\(" , jgart Received: via spool by 58898-submit@debbugs.gnu.org id=B58898.16671660762328 (code B ref 58898); Sun, 30 Oct 2022 21:42:02 +0000 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 21:41:16 +0000 Received: from localhost ([127.0.0.1]:39106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opG3P-0000bT-Fr for submit@debbugs.gnu.org; Sun, 30 Oct 2022 17:41:16 -0400 Received: from mx1.dismail.de ([78.46.223.134]:6983) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opG3N-0000bE-50 for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 17:41:14 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 0d010cc3; Sun, 30 Oct 2022 22:41:03 +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-type :content-transfer-encoding; s=20190914; bh=NvsviN18b0NcCWgm2Oy0F 2zNgmaPEUngd4xDfsRhaEg=; b=rpoisRZftXKGbTJBEmsGYlVAkzigMKIKTYTRD IIwuuCUqf8XDlQozUvyV/lxKkOcKQLei3fV9gwMsA7Hr7eNo0V5pNU24w27/o6c7 aNBNY7xvB3UD/sHAiTkcI3f8kiQInEsiri+TLxCGzKF+3qpJm1YQS248McdxGPTp MBrZa5+tgStZpoB+lLubE/Q4x8QDzI/JjQuMQmriWeHdmVB3/QE2zVef82sLE+GC ararlMQud8Gt9ZlarU19x5q9auk0jQ6AY3N+pkCce3hQLXrnvHHP1hhK7MNPTkWd aRyIJSDVq9hQqfA1m1SbBeyrBdorYmb3SLPJcgO+UzAL48qQQ== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 978c16dd; Sun, 30 Oct 2022 22:41:03 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 2984d13d; Sun, 30 Oct 2022 22:41:03 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 20deb203 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 22:40:57 +0100 (CET) Date: Sun, 30 Oct 2022 16:38:42 -0500 Message-Id: <20221030213840.13337-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 From: jgart via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1667166149; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ZGaRvf4SO8KrJ47ul7Pmr//3Ga9Fof4tK1jYXX6VLk8=; b=Wj3tRvpMtUeLTzNbgiomb/X5w1VOPS+W6nSYIcqDBb/X/i6TCTeIocb5RbCT1TnQLUZEMR R8K2aEqlNIFXcajyy6Ilm35xZh1FpZ2PSaUTNU4D1Mx4CABTz8bAItfUkD+H3a1NqyhepN 6/ZTT7t/yCCX7QZS5z052jP6CC5wS07ADFioIhfD26ys9IP1NXtmHMemSV9Q6fjFZ+uyvC gJzC72TKCOmn5PlNaRt1e0kEmtyJ9QjFvEP6trXd0m6SkdybQlUk/SL3kl/R0WzHKznLSd BvjGTt4VCpeVMr3BSIua0KnMEr5eHgSCLr4xaG6ook1uHMs1XRII3GE1R2mhXg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667166149; a=rsa-sha256; cv=none; b=g9KwVaq9sZmbCVQFTLptTaVOMRrywxs3FMUICOAmq800deaR3exp1zMjjsfCCenhqHKUNT GtGd7PDG94T8n2D+B+AnZyAy8eQxDbGcJli6jVCljsbmicF7p+bX4FB+3Qot6GAXTdbJPF Ak56DE8H2/yaJbbcBbVoeRGo4quG9TwaKqd2TAgAbQJDOWPudPke+vhC4bEUEahe7eug4w swMnVO6xihRkwU/6Pr6Apn/Gat6YCD5DWzvII6fHsDS74hKcxTcUYSKPJAngCSZPcvKUut xxKuQiqyfiZSMI7YVuaoK7FtG2EtkdI+kER36NzoOOTd4fgX7JIauA/S30XkyA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=rpoisRZf; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=rpoisRZf; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B54B2121CA X-Spam-Score: -4.75 X-Migadu-Scanner: scn0.migadu.com X-TUID: 5SnTvgSvIorB * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( hi christine, here is v5 co-authored with paren. double function works now ;() see here: https://paste.sr.ht/~unmatched-paren/712cc5a63e3feb2981d6aaaed97f4c0726c8f3bb --- gnu/packages/lisp.scm | 72 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..3db2e5e74a 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -22,6 +22,7 @@ ;;; Copyright © 2021 Charles Jackson ;;; Copyright © 2022 Joeke de Graaf ;;; Copyright © 2021, 2022 jgart +;;; Copyright © 2022 ( ;;; ;;; This file is part of GNU Guix. ;;; @@ -55,6 +56,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 +73,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 +1274,72 @@ (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 + (list #: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 'wrap-programs + (lambda* (#:key inputs #:allow-other-keys) + (define (wrap-carp-program program) + (wrap-program (string-append + #$output "/bin/" program) + `("CARP_DIR" prefix + (#$(package-source this-package))) + `("PATH" prefix + ,(list (dirname + (search-input-file inputs "bin/clang")) + (dirname + (search-input-file inputs "bin/ld")))) + `("C_INCLUDE_PATH" prefix + ,(list (dirname + (search-input-directory + inputs "include/linux")) + (dirname + (search-input-file + inputs "include/stdlib.h")))))) + + (for-each wrap-carp-program + (list "carp" + "carp-header-parse"))))))) + (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)) + (native-inputs + (list ghc-hunit)) + (home-page "https://carp-lang.org/") + (synopsis "Statically typed Lisp without a garbage collector") + (description + "@code{carp} is a Lisp-like programming language that compiles to +C. It features inferred static typing, macros, automatic memory +management without a garbage collector, a REPL, and straightforward +integration with code written in C.") + (license license:asl2.0))) (define-public lisp-repl-core-dumper (package (name "lisp-repl-core-dumper") -- 2.38.1