unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 53834@debbugs.gnu.org
Cc: jgart <jgart@dismail.de>
Subject: [bug#53834] [PATCH] gnu: Add cproc.
Date: Sun,  6 Feb 2022 20:14:15 -0500	[thread overview]
Message-ID: <20220207011414.28849-1-jgart@dismail.de> (raw)

* gnu/packages/c.scm (cproc): New variable.
---

Hi Guixers,

This is a WIP in case anyone would like to help check/test/review this package.

cproc depends on qbe which is available from ticket 53833.

all best,

jgart

 gnu/packages/c.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 8966b7b8d0..87a6d413bc 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -172,6 +172,38 @@ (define-public qbe
       (home-page "https://c9x.me/compile/")
       (license license:expat))))
 
+(define-public cproc
+  (let ((commit "51e61fa5fa3de8cabc2191a5c6ac4d18aaaaf049")
+        (revision "0"))
+    (package
+      (name "cproc")
+      (version (git-version "0.0" revision commit))
+      (source
+        (origin
+          (method git-fetch)
+          (uri
+            (git-reference
+              (url "https://git.sr.ht/~mcf/cproc")
+              (commit commit)))
+          (file-name (git-file-name name version))
+          (sha256
+           (base32
+            "1fyyqxg2fphh104yrn15az0w7vipkljkgspi6kzv8lyddl5758nj"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:tests? #f
+         #:make-flags (list (string-append "CC=" ,(cc-for-target))
+                            (string-append "PREFIX=" %output))
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure))))
+      (inputs
+        (list qbe))
+      (synopsis "C11 compiler")
+      (description "@code{cproc} is a C11 compiler using QBE as a backend.")
+      (home-page "https://sr.ht/~mcf/cproc")
+      (license license:expat))))
+
 (define-public libbytesize
   (package
     (name "libbytesize")
-- 
2.35.0





             reply	other threads:[~2022-02-07  2:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-07  1:14 jgart via Guix-patches via [this message]
2022-04-05 16:12 ` bug#53834: [PATCH] gnu: Add cproc Ludovic Courtès
2022-05-07 18:04 ` [bug#53834] " (unmatched-parenthesis via Guix-patches via
2022-05-08 20:25 ` [bug#53834] [PATCH v2] " (unmatched-parenthesis via Guix-patches via
2022-07-07 20:12   ` bug#53834: [PATCH] " Maxim Cournoyer
2022-07-08  6:40     ` [bug#53834] " ( via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220207011414.28849-1-jgart@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=53834@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).