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 GEHwH5CyXmOvaQAAbAwnHQ (envelope-from ) for ; Sun, 30 Oct 2022 18:21:20 +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 uPPAH5CyXmMGVQAA9RJhRA (envelope-from ) for ; Sun, 30 Oct 2022 18:21:20 +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 23AFF4072 for ; Sun, 30 Oct 2022 18:21:20 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1opBze-0004Uc-9a; Sun, 30 Oct 2022 13:21:06 -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 1opBzb-0004Rr-5g for guix-patches@gnu.org; Sun, 30 Oct 2022 13:21: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 1opBza-0007bj-Us for guix-patches@gnu.org; Sun, 30 Oct 2022 13:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1opBza-0002bA-Hu for guix-patches@gnu.org; Sun, 30 Oct 2022 13:21:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58898] [PATCH v4] gnu: Add carp. Resent-From: Christine Lemmer-Webber Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 30 Oct 2022 17:21: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: jgart Cc: 58898@debbugs.gnu.org X-Debbugs-Original-Cc: 58898@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16671504099902 (code B ref -1); Sun, 30 Oct 2022 17:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 30 Oct 2022 17:20:09 +0000 Received: from localhost ([127.0.0.1]:38959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opByi-0002Zb-N6 for submit@debbugs.gnu.org; Sun, 30 Oct 2022 13:20:09 -0400 Received: from lists.gnu.org ([209.51.188.17]:35994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1opByb-0002Yv-CH for submit@debbugs.gnu.org; Sun, 30 Oct 2022 13:20:03 -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 1opByb-0004Fi-6P for guix-patches@gnu.org; Sun, 30 Oct 2022 13:20:01 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1opByX-00072L-RC for guix-patches@gnu.org; Sun, 30 Oct 2022 13:20:00 -0400 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 704965C0086; Sun, 30 Oct 2022 13:19:54 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Sun, 30 Oct 2022 13:19:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dustycloud.org; h=cc:cc:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1667150394; x=1667236794; bh=Mt 7+VBZTRCLsJV4spY7xh+jGuwv3pszDou9GDeXHHaI=; b=M5tKc9OOqzttdhfTQZ taoW+THq5tqsIDNuMkAQu7tb5uzSSv9eMtMjb3L7rcUBrUMtzjGWUtcRkpy17++Z woRKFyWq7WFZ5xs3HlUoaCcqcOWJaJjEmXuzQivxaZKsQ0sAJkGb+dKmpiAOjPda SaS6CD98W3Bh+zG4uD2zisLRZHXCTCRThbNhNcD5j4nUMoYGgb3CZazRN+qIJ+pB OdSyLkQbCy11vSPfjeNXNf/kD8pgteWfE1suJI7+N4GEb6tPeafHy1X61Yj//kVZ 43kU7FyIMV7WzIww3QquzekhaqJnf4b6hqEU6COMnEMpeBJG+TZUQof9G/AY9jts hm9g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1667150394; x=1667236794; bh=Mt7+VBZTRCLsJV4spY7xh+jGuwv3 pszDou9GDeXHHaI=; b=ex0yZme8M0QIu5i/Nxyh+VUqwK43T9sfLtjfw5T+4dXo 6o5CpmfanN5YG/YxpTTRvCAUI7FRT+CbhyaUGy/1rE8hvYafajQtbpdgFDuEoKS2 oy49w1hZDAVe7b7WIev/GzeIr5pvSVQmPEabUSIPd7RD/8u1Yfh1ZwwG590ZX3TG CD9BhuwKlgXCSfRf2+ecCHvdjKckniEJFKENhe1OM26MpifJwFZbmSCfluOsj61E qSEtbpUGZ91+J7prqlt1pKLKEVagoD0DcHp5RoW4Ir4RWr56xxm6U3Z0sNC0VOW6 wdOVgbp6qNy7ynDLWPdufAnCwbO3cWd/Rkw+L8ykYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvgedruddtgddutdduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvfevufffjgfkgggtsehttd ertddtredtnecuhfhrohhmpeevhhhrihhsthhinhgvucfnvghmmhgvrhdqhggvsggsvghr uceotgifvggssggvrhesughushhthigtlhhouhgurdhorhhgqeenucggtffrrghtthgvrh hnpedtffdvleejgedujeejleetgeduhfduheetfefgheejuefgleejheevieetvdeuhfen ucffohhmrghinhepghhithhhuhgsrdgtohhmpdgtrghrphdqlhgrnhhgrdhorhhgnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheptgifvggssggv rhesughushhthigtlhhouhgurdhorhhg X-ME-Proxy: Feedback-ID: i006446df:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 30 Oct 2022 13:19:53 -0400 (EDT) References: <20221030160224.30625-1-jgart@dismail.de> <20221030163024.2244-1-jgart@dismail.de> User-agent: mu4e 1.8.9; emacs 28.2 From: Christine Lemmer-Webber Date: Sun, 30 Oct 2022 13:18:22 -0400 In-reply-to: <20221030163024.2244-1-jgart@dismail.de> Message-ID: <875yg1jkjs.fsf@dustycloud.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=cwebber@dustycloud.org; helo=out1-smtp.messagingengine.com 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-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" 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=1667150480; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: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=Mt7+VBZTRCLsJV4spY7xh+jGuwv3pszDou9GDeXHHaI=; b=BnmIjf5b7oZE6ZnVQ8DOo/z9kurGeZoEn+7G5u6R68hxh/5GoLGdA91Igl2Tf6fleWLK7h vnL7kFr42XIYFR55RJFd42Ob0ZNWPWBQlTqeM0N5upSzYRdAngQYTErnLwNAMKprWjlbkV dCBA7dbJjLBf9gVWtNs6Zvbnk9GnMCQVPlhPqYf1GB78dPxQi90szfpEdhmkTFdIFdzDpT CUsJI9Uo5Vh8KvkIvFfVHd94G5irhuKUznNalz1eq23FvuHZrGZCmCR2cZ4J/CdFPOzla1 YLMJzymtK3gu6Z85CLNaWCOyy7jxjsb8uOBhujQ/RReWjaiRxiqF7HbB6wez0Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1667150480; a=rsa-sha256; cv=none; b=bBM1vHNvNDph5I1CZv/fatAtmpsll0y03MzTuzQqxQKw0Y2T9aPxEn12p1c1i3NwLqbXK7 Cc3JOCgYS55N0wI/hlI+BMdKLbA8HR43Nes4pevp1+JX11zZpTs9Sf88qxNR42PY64WvNU E1iypIiXMATwkI3ky+bhA4OICAjAM9nh6pjA3hQtqpKV6v/5epN29b6sGu2jjcDU+xztXM YwI/VuQ4WkbUyTziIEkAu4Oqi9/UsADlqwbBj1QMt6lOogzx87V921PP9mn7PM7/sPcNEi ou5OvEA6oMZsSpR9CrAw+K+7EeNvD+/zBqUgnGxdM5AhEGpaVIhB7khTl9mBfg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dustycloud.org header.s=fm3 header.b=M5tKc9OO; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=ex0yZme8; dmarc=none; 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: 0.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=dustycloud.org header.s=fm3 header.b=M5tKc9OO; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm3 header.b=ex0yZme8; dmarc=none; 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: 23AFF4072 X-Spam-Score: 0.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q0PF734qCL8U Thanks! It does compile and install. I haven't figured out to how to use it meaningfully though... Here's what happens to me: cwebber@chicory:~/devel/guix$ carp Welcome to Carp 0.5.5 This is free software with ABSOLUTELY NO WARRANTY. Evaluate (help) for more information. > (defn double [x] (* x 2)) (> > (double 2) In file included from out/main.c:20: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_long.h:90:5: error: implicit declaration of function 'srand' is invalid in C99 [-Werror,-Wimplicit-function-declaration] srand(seed); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_long.h:90:5: note: did you mean 'rand'? /home/cwebber/.guix-profile/include/stdlib.h:52:5: note: 'rand' declared here int rand (void); ^ In file included from out/main.c:21: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:1:29: error: use of undeclared identifier 'DBL_MAX' const double CARP_DBL_MAX = DBL_MAX; ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:68:12: error: implicitly declaring library function 'acos' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return acos(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:68:12: note: include the header or explicitly provide a declaration for 'acos' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:72:12: error: implicitly declaring library function 'asin' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return asin(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:72:12: note: include the header or explicitly provide a declaration for 'asin' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:76:12: error: implicitly declaring library function 'atan' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return atan(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:76:12: note: include the header or explicitly provide a declaration for 'atan' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:88:12: error: implicitly declaring library function 'cosh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return cosh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:88:12: note: include the header or explicitly provide a declaration for 'cosh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:96:12: error: implicitly declaring library function 'sinh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return sinh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:96:12: note: include the header or explicitly provide a declaration for 'sinh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:100:12: error: implicitly declaring library function 'tanh' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return tanh(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:100:12: note: include the header or explicitly provide a declaration for 'tanh' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:108:12: error: implicitly declaring library function 'frexp' with type 'double (double, int *)' [-Werror,-Wimplicit-function-declaration] return frexp(x, exponent); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:108:12: note: include the header or explicitly provide a declaration for 'frexp' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:120:12: error: implicitly declaring library function 'log10' with type 'double (double)' [-Werror,-Wimplicit-function-declaration] return log10(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:120:12: note: include the header or explicitly provide a declaration for 'log10' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:144:12: error: implicitly declaring library function 'fmod' with type 'double (double, double)' [-Werror,-Wimplicit-function-declaration] return fmod(x, y); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_double.h:144:12: note: include the header or explicitly provide a declaration for 'fmod' In file included from out/main.c:22: /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:1:28: error: use of undeclared identifier 'FLT_MAX' const float CARP_FLT_MAX = FLT_MAX; ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:47:12: error: implicitly declaring library function 'fabsf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return fabsf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:47:12: note: include the header or explicitly provide a declaration for 'fabsf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:51:12: error: implicitly declaring library function 'acosf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return acosf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:51:12: note: include the header or explicitly provide a declaration for 'acosf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:55:12: error: implicitly declaring library function 'asinf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return asinf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:55:12: note: include the header or explicitly provide a declaration for 'asinf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:59:12: error: implicitly declaring library function 'atanf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return atanf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:59:12: note: include the header or explicitly provide a declaration for 'atanf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:63:12: error: implicitly declaring library function 'atan2f' with type 'float (float, float)' [-Werror,-Wimplicit-function-declaration] return atan2f(y, x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:63:12: note: include the header or explicitly provide a declaration for 'atan2f' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:67:12: error: implicitly declaring library function 'cosf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return cosf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:67:12: note: include the header or explicitly provide a declaration for 'cosf' /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:71:12: error: implicitly declaring library function 'coshf' with type 'float (float)' [-Werror,-Wimplicit-function-declaration] return coshf(x); ^ /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/carp_float.h:71:12: note: include the header or explicitly provide a declaration for 'coshf' fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. carp: callCommand: clang -o out/Untitled -I /gnu/store/0xhn0vyjlcb2dv1h2333vhbj7j1vvrr6-carp-0.5.5-checkout/core/ -fPIC -g -std=c99 -D_DEFAULT_SOURCE -Wall -Werror -Wno-unused-variable -Wno-self-assign -lm out/main.c (exit 1): failed Have you had any better luck? jgart via Guix-patches via writes: > * 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")