From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 SJJ6ClhQbmM5bAAAbAwnHQ (envelope-from ) for ; Fri, 11 Nov 2022 14:38:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mDCWClhQbmNuQAAA9RJhRA (envelope-from ) for ; Fri, 11 Nov 2022 14:38:32 +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 DE9F13F0A5 for ; Fri, 11 Nov 2022 14:38:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1otUES-0003ib-78; Fri, 11 Nov 2022 08:38:08 -0500 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 1otUEN-0003gs-2l for guix-patches@gnu.org; Fri, 11 Nov 2022 08:38:03 -0500 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 1otUEM-00062U-Q4 for guix-patches@gnu.org; Fri, 11 Nov 2022 08:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1otUEM-0005If-9q for guix-patches@gnu.org; Fri, 11 Nov 2022 08:38:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#58898] [PATCH v8] 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: Fri, 11 Nov 2022 13:38: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.166817387220358 (code B ref 58898); Fri, 11 Nov 2022 13:38:02 +0000 Received: (at 58898) by debbugs.gnu.org; 11 Nov 2022 13:37:52 +0000 Received: from localhost ([127.0.0.1]:45367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUEB-0005II-Cr for submit@debbugs.gnu.org; Fri, 11 Nov 2022 08:37:51 -0500 Received: from mx1.dismail.de ([78.46.223.134]:42128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1otUE9-0005I3-KN for 58898@debbugs.gnu.org; Fri, 11 Nov 2022 08:37:50 -0500 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 26c942be; Fri, 11 Nov 2022 14:37:42 +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=U4b5LqewVdb3iq6NmQ2Xg wJgQfxaYQEYV8Z+hdZKQqo=; b=D01737Y7BjJd3WSzh4pflFQuRSMY8dy9rlhtB y4Xctoa0z32fyZt6gUxSbLekNSfH0FRztzmv0Ku6FBDHKUe9Zx0q7NVmX4IY3hxZ sJqOHs8fxsrlgMYagcH8S4xqrgSy7R20NB1aROo51WJnUSCQqO7ql/aUULdkmU3K EgbXdO/MhBC6KnWEwtqag/sl/tFgJR4FAPIjYfGEL3icZK6jb1TXHg5hGm/oDi93 fPfURXlrafUK/wzR1p0NA5ueDOXr7A6wJ7oXg1eYhuldv0kyIBPVm/EQpAHK9YTn TY/AnvBtb761J/sBkR3FdtVDyfenpeQO1vBnIb5qAUo0+RU8w== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 97119e30; Fri, 11 Nov 2022 14:37:42 +0100 (CET) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id 68f7a8fe; Fri, 11 Nov 2022 14:37:42 +0100 (CET) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 448a93d3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 11 Nov 2022 14:37:41 +0100 (CET) Date: Fri, 11 Nov 2022 07:37:27 -0600 Message-Id: <20221111133727.1416-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: , 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 Sender: 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=1668173912; 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=rxdpGA86gpmAzObttNzfOY5lrs0hJPdHfoEMvKZIkyY=; b=qfPiBYn8/lpcRrEjaj0x8y9sypLi0c+MkfvUyqngrPX3dXtkSM0mNb+qRe0YptGQa4sbs0 e/MFd0FBvS3/GZ2i+0mbz6+bbNWBuSfZyheqNXc8pJ2dn1bXnb3dNfXe9VK6qfXHs/6bdU yLDVbOj6I/jRIH25MEpg/+RgySo5m3GrZOoPWaFoEJjh+joqMEQ1xBbSqQKud3S60Jz/ni THdhD2GAyRMjREdqzub/s5pjNAfRyPZPvOw/SSxkBVPTyH2cgxFP3CAXRli7WSKgjYSOxM nWtZ/ayzm7UBTB9yj7jHhUHTssi9DZDgVifOknm8bk77cs6DN0CPPzOKlPLwfA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668173912; a=rsa-sha256; cv=none; b=XNFERCbfr7bsP2WxnETeTRhTELLe2mAoz5ugiuWakaZSCjultrHq879rIotA4SjwrVesVj PR4HwcxAP8CCeV4zEFAwXswktXWAG6mwEs1MTn6hk5NDpVwtuGwLijVVx9tw0TdITHUS0Z oSPrAjEULKnDqkwT6B63FGl4IHC2ua4tqwIzwfdrMKfpFRZcOy8M8ko4SgwOqwDV/qivfd aQR9es54lfEWUk8gjLUjiaeVPypjrwXXcYSurno1dQlFYyGrXH3IZL2Pgjm188Do6G98HZ qhRP4FU7Np81IXX8rKcN8zq7NrFBUc7LFsuANBUu+hklypBV2R+ePqmbcAadhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=D01737Y7; 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.63 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dismail.de header.s=20190914 header.b=D01737Y7; 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: DE9F13F0A5 X-Spam-Score: -3.63 X-Migadu-Scanner: scn1.migadu.com X-TUID: be9tHQ/HG/9X * gnu/packages/lisp.scm (carp): New variable. Co-authored-by: ( --- gnu/packages/lisp.scm | 73 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index d0f24163cb..2e2562c471 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) @@ -1257,6 +1263,73 @@ (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