all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: Adam Faiz <adam.faiz@disroot.org>, 72569@debbugs.gnu.org
Subject: [bug#72569] [PATCH 2/4] gnu: Add sort-h.
Date: Sat, 17 Aug 2024 14:26:15 +0200	[thread overview]
Message-ID: <21997ed6d699293c38f73415dc8978fff8798f62.camel@gmail.com> (raw)
In-Reply-To: <21cba819-e142-80aa-43d2-60e27178aa95@disroot.org>

Am Sonntag, dem 11.08.2024 um 13:17 +0800 schrieb Adam Faiz:

> +(define-public sort-h
> +  ;; The latest commit is used as there is no release.
> +  (let ((commit "24f5b8b13810ad130109c7b56daf8e99ab0fe1b8")
> +        (revision "0"))
> +  (package
> +    (name "sort-h")
I'd call this one c-template-sort, after the "subject" on Github.
> +    (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"))
> +              (modules '((guix build utils)))
> +              (snippet
> +               #~(begin
> +                   (substitute* "Makefile"
> +                     (("^demo:" all)
> +                      (string-append
> +                       "install:\n\t"
> +                       "install -d $(DESTDIR)$(PREFIX)/include\n\t"
> +                       "install sort.h
> $(DESTDIR)$(PREFIX)/include\n\t"
> +                       "install sort_extra.h
> $(DESTDIR)$(PREFIX)/include\n\n"
> +                       all)))))))
Note: this package might be a better fit for copy-build-system.  You
can still have a check phase, but I think you'll benefit from the
install plan.
> +    (build-system gnu-build-system)
> +    (arguments
> +     (list
> +      #:make-flags
> +      #~(list
> +         (string-append "CC=" #$(cc-for-target))
> +         (string-append "PREFIX=" #$output))
> +      #:test-target "test"
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (delete 'configure)
> +          (delete 'build))))
> +    (home-page "https://github.com/swenson/sort")
> +    (synopsis "C implementation of many sorting algorithms")
> +    (description "@code{sort.h} is an implementation of a ton of
> sorting
> +algorithms in C with a user-defined type that is provided at include
> time.")
I'd say something like "This package provides a header-only C library,
that implements several sorting algorithms.  It is configured using
macros and supports user-defined types."

Cheers




  reply	other threads:[~2024-08-17 12: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 [this message]
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 ` [bug#72569] [PATCH v2 2/4] gnu: Add c-template-sort Adam Faiz via Guix-patches via
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=21997ed6d699293c38f73415dc8978fff8798f62.camel@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=72569@debbugs.gnu.org \
    --cc=adam.faiz@disroot.org \
    /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.