From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kBZnMxF8smYVHgAA62LTzQ:P1 (envelope-from ) for ; Tue, 06 Aug 2024 19:40:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kBZnMxF8smYVHgAA62LTzQ (envelope-from ) for ; Tue, 06 Aug 2024 21:40:01 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=i9aPd0W2; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gCcv3FP5; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1722973201; 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: 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=5Rhi3Shq5S0HXRHtHJmicBvrW5lzfYBvwiE83gwDplk=; b=faMayl2dkwEapm2w7TkUkZphorv4+KTuxAfQIOSsLhs88rE6erbKhtJ5M602u6d70Gw27p 14zT8226cdPqHv+u4is6XH8roxYKN4eJe3bB0ZaM6bkQe79IQlJtokLYZdAEiqbx0aKPCJ xN4pNc0+RZly7h5ioYoU9AREkenR6yxGHbUkmvLZ2GAyJXDZJzP3XYCQOTWZR1HABzDsXw km8HJ9x02l3UJZdB3yAqlFJL1PYpJgD2s34Lk5DyQrEtmCVLIpbOVqsF8Ipjnele+/9Piz h4wJzUFaoPC+xzRJSA6MJLEBLfrz5EPAr6OeNw5g0OtVjihuWxOLSG0Laqoiuw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=i9aPd0W2; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=gCcv3FP5; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1722973201; a=rsa-sha256; cv=none; b=lH5/NbfGEvqNM1S/GjfbHUrXses61S4b+gBMc1SHC/bBmLPgRM1RYycHKRNxN4cNlumU0s I1jMYxirCSxxhxjNyPYbTWYFR7SEVpV++C1GdoF+25z1JImL5GQxMTI4eFtb8gvtnd09Xv UDSm5koin8zBEDVe5MoBzOy1OGVo0wVtH30js3q+amJroKY2U64yIBcN4YVslrVFi5ArGD 4PhdpGYvWKNeqC20ti+Sf+roIhUUdNgYSG/wdBxOUL2+RFiUAMKi3Owz33qcYap/UpiLJW wg10bYkreG+1q+c6Cs+qsfSpitZEN0MLSNzgQY38ETb3TZk7PyM12iiuBWZpsw== 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 5C400DB45 for ; Tue, 6 Aug 2024 21:40:01 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sbQ24-00011y-0r; Tue, 06 Aug 2024 15:39:44 -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 1sbQ1z-00011W-LM for guix-patches@gnu.org; Tue, 06 Aug 2024 15:39:40 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sbQ1z-0007b9-3H for guix-patches@gnu.org; Tue, 06 Aug 2024 15:39:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=5Rhi3Shq5S0HXRHtHJmicBvrW5lzfYBvwiE83gwDplk=; b=i9aPd0W2ZYy9lBSKF664GJn8PXgr++QkdCr72NPs7sy7xA0BzCrkUhgra7C2TEfx98hicT6dXp+NeTucNGToTRr3YoRQmpLjN5kXzbDxGFd9mFXqjzlrmUHVQr55Eq2vD+/M72wTLbBNgjGEqtE2nIqqUEplnXFfR/9ahKk3D+Gk1ZVd7E6FWIvMSpGjRg88bqLpgUTJcbcPVOO1Gdk91ytr/24tJBxSLOvMnRbsRt010fsSOvh0o2wbBr4qTH39OpVt4VtcxotASBzibpZ9rx0yYviTVWajacUAigyZDpietLcHjbEWMDNYNC7ayOC0m3zJQwnrygV6qKX8j3CG6w==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sbQ2M-0007tS-60 for guix-patches@gnu.org; Tue, 06 Aug 2024 15:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72494] [PATCH v2] gnu: Add C3 1.6.1. References: In-Reply-To: Resent-From: Ashvith Shetty Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 06 Aug 2024 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72494@debbugs.gnu.org Cc: Ashvith Shetty Received: via spool by 72494-submit@debbugs.gnu.org id=B72494.172297315430283 (code B ref 72494); Tue, 06 Aug 2024 19:40:02 +0000 Received: (at 72494) by debbugs.gnu.org; 6 Aug 2024 19:39:14 +0000 Received: from localhost ([127.0.0.1]:33105 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbQ1a-0007sN-1l for submit@debbugs.gnu.org; Tue, 06 Aug 2024 15:39:14 -0400 Received: from mail-pl1-f180.google.com ([209.85.214.180]:48307) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sbQ1Y-0007s5-Fr for 72494@debbugs.gnu.org; Tue, 06 Aug 2024 15:39:13 -0400 Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-1ff4568676eso11572295ad.0 for <72494@debbugs.gnu.org>; Tue, 06 Aug 2024 12:38:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722973062; x=1723577862; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5Rhi3Shq5S0HXRHtHJmicBvrW5lzfYBvwiE83gwDplk=; b=gCcv3FP5WBBBBCFPU8FQ0b5pYn2ZPQYiwp6UoNOB1fIzsaPIigQwAIYPnqrEntbrEg 3KSCZInQKbgZ2Rh49poMhIWY3ct+LtvPBRVO9+KcJqfu4SGclOT30Ibw9/QFUpj9sLJp FGVlTLeiHItgQtcRG7BZY7SYWm1xc6LED97MjL06k+M0K/qjkdxW5XaLk188wvfUPs0z l5Ac3aNiiPd3ybjCaCHAEmsq+yefWDQ38mK8D5keMSR/yF+xxKLIh6WWAQUftxypJ8PL TXMy2Ki6kMmZQMscft+ZEMe2wFOxuuosooar5cysO2RJxfqYxzwlYawDvMXPD23No/WN pusA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722973062; x=1723577862; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5Rhi3Shq5S0HXRHtHJmicBvrW5lzfYBvwiE83gwDplk=; b=iSPf2tpOIxAF4XpHuEwgDSV6LL2Gz0RYJSu21yxs5XzaUFaRrXjZCU4HTveU1wTrII 2GNiTn81bpegT3eOJapCE4iJUtvuqbE8E0LQp5mQ+MHRnFTHaDNBnUlnJYoGXHMh7UPs x+spK43q75rYCZUDPltUuR+5oxHyWCU10+FmpbjQTg9GZVNap7bSbbSDpIty8UGcVKcN oi9I+pBPVZw/JmIAGkDi7YLwfK7lPFiJLBomaCTwGfp1VnBersVY90/XWRHfaEga3pC5 dqQ7SgO2KlefbZr2ObL9kMH+VQ+bl/aYKRWgMhucwatBx+qBSUrHoMKuLiQkGA2FJwWA 3Enw== X-Gm-Message-State: AOJu0YyAgKRRLTOFvCoTQkXk+X2bUMu1h3xDmiyYEH/DLKke+H5BCmij tAX2ShVJdSOMPxNIF4nlX29V8nCVebfVUjG6GMZDM/E6PtAwwv4SHKJ9qEBU X-Google-Smtp-Source: AGHT+IECvNTqDgvSJ+SzjWg0D2zWB7p8azmWISwOm3B7OLD99D75jKwuPvlW9ENLl1PhkkuDdXpavQ== X-Received: by 2002:a17:902:f681:b0:1fd:73e6:83c7 with SMTP id d9443c01a7336-1ff573cc797mr177293215ad.48.1722973062063; Tue, 06 Aug 2024 12:37:42 -0700 (PDT) Received: from wisteria.bbrouter ([150.129.60.164]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ff592ae0b3sm91075455ad.275.2024.08.06.12.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Aug 2024 12:37:41 -0700 (PDT) From: Ashvith Shetty Date: Wed, 7 Aug 2024 01:07:35 +0530 Message-ID: X-Mailer: git-send-email 2.45.2 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -4.48 X-Migadu-Queue-Id: 5C400DB45 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -4.48 X-TUID: RsSUomFcONNc * gnu/packages/c3.scm (c3c-bootstrap): New variable. Change-Id: I4523c9c4e2fa613f1aecc5ad1214722618fa3ab8 --- gnu/packages/c3.scm | 58 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 gnu/packages/c3.scm diff --git a/gnu/packages/c3.scm b/gnu/packages/c3.scm new file mode 100644 index 0000000000..bd8bf89b17 --- /dev/null +++ b/gnu/packages/c3.scm @@ -0,0 +1,58 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2024 Ashvith Shetty +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages c3) + #:use-module (gnu packages libffi) + #:use-module (gnu packages llvm) + #:use-module (guix build-system cmake) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix licenses) + #:use-module (guix packages)) + +(define-public c3c-bootstrap + (package + (name "c3c") + (version "0.6.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/c3lang/c3c") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0xjl3yghyqmqv9118nhcix3xywlpdirqc0dlmdaghdkja0wr19rw")) + (snippet #~(begin + (use-modules (guix build utils)) + (substitute* "CMakeLists.txt" + (("\\$\\{LLVM_LIBRARY_DIRS\\}") + (string-append #$lld-18 "/lib/ " + #$llvm-18 "/lib/"))))))) + (build-system cmake-build-system) + (arguments + '(#:configure-flags '("-DCMAKE_INSTALL_LIBDIR=lib") + ;; TODO: Fix test + #:tests? #f)) + (inputs (list libffi llvm-18 lld-18)) + (synopsis "Compiler for the C3 language") + (description + "C3 is a programming language that builds on the syntax and semantics of the C language, with the goal of evolving it while still retaining familiarity for C programmers.") + (home-page "https://c3-lang.org/") + (supported-systems '("x86_64-linux" "aarch64-linux" "riscv64-linux")) + (license (list lgpl3 expat)))) -- 2.45.2