From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 8G9CFyOnXmPT/QAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 17:32:35 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id GBMKFiOnXmMnogAAG6o9tA (envelope-from ) for ; Sun, 30 Oct 2022 17:32:35 +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 022F02FE5 for ; Sun, 30 Oct 2022 17:32:33 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opBER-0002Tj-Rt; Sun, 30 Oct 2022 12:32:19 -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 1opBEB-0002R4-39 for guix-patches@gnu.org; Sun, 30 Oct 2022 12:32:18 -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 1opBEA-0003EL-RL for guix-patches@gnu.org; Sun, 30 Oct 2022 12:32:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opBEA-0001Lj-AQ for guix-patches@gnu.org; Sun, 30 Oct 2022 12:32:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58898] [PATCH v4] 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 16:32: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: jgart Received: via spool by 58898-submit@debbugs.gnu.org id=B58898.16671474705126 (code B ref 58898); Sun, 30 Oct 2022 16:32:02 +0000 Received: (at 58898) by debbugs.gnu.org; 30 Oct 2022 16:31:10 +0000 Received: from localhost ([127.0.0.1]:38908 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opBDK-0001Kc-D5 for submit@debbugs.gnu.org; Sun, 30 Oct 2022 12:31:10 -0400 Received: from mx1.dismail.de ([78.46.223.134]:9021) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opBDH-0001KA-LT for 58898@debbugs.gnu.org; Sun, 30 Oct 2022 12:31:08 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 922ddc65 for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +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=bx57Ag9MXBDC3j8ctHCMo3+YCDfgQLg5hVR4YUBCr48=; b= ngGsWSbW8Nm0ANbHiWStdcEqi+0iIwnIUc3JTTMz776Ka9UHGH7vdpT7A6To4+Y6 59aT1dYbOvQVGNiZNRBrP6YyrC9XHRM+rI8+oSK8EtzbtzD4XKPY1y8Vkf38qJI4 po1KP1IS3bF4Jk7d2Rf043hs4IGs81WdQsG/ZSGweKbBFigzlnY9g7RS4OcGl+h+ 0UNIdmfqJduEzzq15IS2TFj4oY7A/XomSN4knVbjLGJ231IqXtCXI7AwyLlICW4D pVp0BDLN0JFL+R/Y8QJsQE91MMQ5c1qavERmtkRDN7yYrL0zr6w/m1nvA5fl9Ws8 cJMqED0kt/P3xDe9w3OygA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id aaacc07e for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +0100 (CET) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id 33084a0b for <58898@debbugs.gnu.org>; Sun, 30 Oct 2022 17:31:01 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 8eafa0ac (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 30 Oct 2022 17:31:00 +0100 (CET) Date: Sun, 30 Oct 2022 11:30:25 -0500 Message-Id: <20221030163024.2244-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 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=1667147555; 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-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=2fnxPpbaYouYpYvGSq9s7zHFK9og3ofaNjulFEIa/Ak=; b=pTmJ4oTQxOAfchTTdelhwimyuHdNdHwFho6fgKlkis9aO2ADD4izJQOqn6iB14kjdvnX7d RllGrdDcoQHcGn357s7GQGmyASm8AvKPyx/ppnYKVhUmFcV92upmpE6P9ODe0eIJ48Bk1m yv6U0Q4L8FYMgn9x1eiIHfybLKK3oBAHy8Yxpt1SklOL3lyZvvf46nW4OJCd833UuPjjbC 9YvkUuGBnRLMkLx5sQWKcwZV2xQzhNu+FTMND/ABKUlQoK2jVPaNuHG4x7PH3l5edvzXwW 9uxGcsMOB4uRaJzP+Dt3ksGMPZhEC4M49vnP4g7BWt5tofV4vUo+ObFMOmD0zg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667147555; a=rsa-sha256; cv=none; b=bAjCHH9jSgpzoO2j1o9tv5atbVI3f/a04PtARX7KKYliaOAVNpmlPVEdDrQrnLo9P0IFMH NVaY1GtiRqNEnW/k4UExIjFxuIPAFF3JoMy2z7MJZ8gUTKao2SXGMGNqqUPth1aTMJmwFM lpEqu1qhxDKYHtxA6/h13nFp50zbqc5BkWWhg6312UxfVQGqLdSKTA33yNbX7vz9dOMQLJ WzNcfMIHDGr7IFChHfLbMSS9ERujk4EBHNhK0YoRnvouNpUr0kkU/uAQSDi2wdUKyz97TH F3J4ulqB3POwlvvDXp3PKJOcg5gAcdqaGENsWt/bpeu8UpSO4r5zmfpDmcj/zg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=ngGsWSbW; 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: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=ngGsWSbW; 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: 022F02FE5 X-Spam-Score: -3.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: VdAHL1+F6dQG * gnu/packages/lisp.scm (carp): New variable. here's v4. v3 fails ;() --- gnu/packages/lisp.scm | 57 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 4899943ba8..c7ba84c771 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