all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Adam Faiz via Guix-patches via <guix-patches@gnu.org>
To: 72569@debbugs.gnu.org
Cc: Liliana Marie Prikler <liliana.prikler@gmail.com>
Subject: [bug#72569] [PATCH v2 2/4] gnu: Add c-template-sort.
Date: Wed, 28 Aug 2024 23:27:27 +0800	[thread overview]
Message-ID: <54b08ad6-ada8-ce1a-b5ae-e56353f2bc31@disroot.org> (raw)
In-Reply-To: <59b04394-4737-6da3-cf9e-3f181431afa8@disroot.org>

From 666ad0b1961163d67a07abe0e25d4b50fdd98f12 Mon Sep 17 00:00:00 2001
Message-ID: <666ad0b1961163d67a07abe0e25d4b50fdd98f12.1724856297.git.adam.faiz@disroot.org>
In-Reply-To: <91bf9bff2c3c365d006a0e88024db50f416cd436.1724856297.git.adam.faiz@disroot.org>
References: <91bf9bff2c3c365d006a0e88024db50f416cd436.1724856297.git.adam.faiz@disroot.org>
From: AwesomeAdam54321 <adam.faiz@disroot.org>
Date: Sun, 11 Aug 2024 08:41:05 +0800
Subject: [PATCH v2 2/4] gnu: Add c-template-sort.

* gnu/packages/c.scm (c-template-sort): New variable.
---
 gnu/packages/c.scm | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index a7ac359a94..f74c763f75 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -695,6 +695,41 @@ (define-public sfsexp
 expressions.")
     (license license:lgpl2.1+)))
 
+(define-public c-template-sort
+  ;; The latest commit is used as there is no release.
+  (let ((commit "24f5b8b13810ad130109c7b56daf8e99ab0fe1b8")
+        (revision "0"))
+  (package
+    (name "c-template-sort")
+    (version (git-version "0.0.0" revision commit))
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/swenson/sort")
+                    (commit commit)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0q3pgw51rjq7pb6gc7zx9i48pckyl930lcab4ngxrpa5a8flq850"))))
+    (build-system copy-build-system)
+    (arguments
+     (list
+      #:install-plan
+      #~'(("sort.h" "include/sort.h")
+          ("sort_extra.h" "include/sort_extra.h"))
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-before 'install 'check
+            (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "make" (string-append "CC=" #$(cc-for-target)))))))))
+    (home-page "https://github.com/swenson/sort")
+    (synopsis "C implementation of many sorting algorithms")
+    (description "This package provides a header-only C library,
+that implements several sorting algorithms.  It is configured using
+macros and supports user-defined types.")
+    (license license:expat))))
+
 (define-public sparse
   (package
     (name "sparse")
-- 
2.41.0




  parent reply	other threads:[~2024-08-28 15:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-11  5:13 [bug#72569] [PATCH 0/4] gnu: openclonk: Fix build Adam Faiz via Guix-patches via
2024-08-11  5:16 ` [bug#72569] [PATCH 1/4] gnu: Add backward-cpp Adam Faiz via Guix-patches via
2024-08-17 12:15   ` Liliana Marie Prikler
2024-08-11  5:17 ` [bug#72569] [PATCH 2/4] gnu: Add sort-h Adam Faiz via Guix-patches via
2024-08-17 12:26   ` Liliana Marie Prikler
2024-08-11  5:18 ` [bug#72569] [PATCH 3/4] gnu: openclonk: Fix build Adam Faiz via Guix-patches via
2024-08-11  5:20 ` [bug#72569] [PATCH 4/4] gnu: openclonk: Use gexps and new input style Adam Faiz via Guix-patches via
2024-08-28 15:25 ` [bug#72569] [PATCH v2 1/4] gnu: Add backward-cpp Adam Faiz via Guix-patches via
2024-08-28 15:27 ` Adam Faiz via Guix-patches via [this message]
2024-08-28 15:34 ` [bug#72569] [PATCH v2 3/4] gnu: openclonk: Fix build Adam Faiz via Guix-patches via
2024-08-28 15:36 ` [bug#72569] [PATCH v2 4/4] gnu: openclonk: Use gexps and new input style Adam Faiz via Guix-patches via
2024-08-31 16:32   ` bug#72569: " Liliana Marie Prikler

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

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

  git send-email \
    --in-reply-to=54b08ad6-ada8-ce1a-b5ae-e56353f2bc31@disroot.org \
    --to=guix-patches@gnu.org \
    --cc=72569@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    --cc=liliana.prikler@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.