From patchwork Wed Aug 28 15:27:27 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 67376 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6326327BBEA; Wed, 28 Aug 2024 16:28:30 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 05FC027BBE2 for ; Wed, 28 Aug 2024 16:28:29 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjKal-0003En-AN; Wed, 28 Aug 2024 11:28:15 -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 1sjKaf-0003EA-BQ for guix-patches@gnu.org; Wed, 28 Aug 2024 11:28:10 -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 1sjKad-0005cN-Qm for guix-patches@gnu.org; Wed, 28 Aug 2024 11:28:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=qid3yvKalqlK6ylo3ek24mU6rajYct4UGi2bnZVP+lM=; b=IbtfQLrqFc94IAZYngu0nzt89E5XwAsHgejbTbdkGIdTMvfPSNbK8lr49gc/4FORLE7r1ueYsP/a48H0USaPMMua1l6oPuwqxC2rgFhsSDl9L54fsrdd1bbhTTts38Y8RxU9CLTUnRK+U6N0ruaNc1FPCiRcEx1d0VdCPSNVwGTYc0gbz4w70E6VO5NXRAIBaET0I9q/cXmEiC+J548nMaInoDnMAoTrABuINveb36sJ65jY8sVNKETfEjrbw1kEiiRD5EvL/UZ8DODcKMgj3wPcSjuJwcpUcKtyo6NAzWjx1RT97MqprUlN1sWEntWS+uSPwhpboSpSBUwDfVOSUA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sjKbV-0007wr-Th for guix-patches@gnu.org; Wed, 28 Aug 2024 11:29:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72569] [PATCH v2 2/4] gnu: Add c-template-sort. References: <59b04394-4737-6da3-cf9e-3f181431afa8@disroot.org> In-Reply-To: <59b04394-4737-6da3-cf9e-3f181431afa8@disroot.org> Resent-From: Adam Faiz Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Aug 2024 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72569 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72569@debbugs.gnu.org Cc: Liliana Marie Prikler Received: via spool by 72569-submit@debbugs.gnu.org id=B72569.172485893430535 (code B ref 72569); Wed, 28 Aug 2024 15:29:01 +0000 Received: (at 72569) by debbugs.gnu.org; 28 Aug 2024 15:28:54 +0000 Received: from localhost ([127.0.0.1]:49570 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjKbO-0007wR-2A for submit@debbugs.gnu.org; Wed, 28 Aug 2024 11:28:54 -0400 Received: from layka.disroot.org ([178.21.23.139]:55426) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sjKbM-0007wI-5E for 72569@debbugs.gnu.org; Wed, 28 Aug 2024 11:28:52 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 74C7741A91; Wed, 28 Aug 2024 17:27:57 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jwetvq4vj-HI; Wed, 28 Aug 2024 17:27:56 +0200 (CEST) Message-ID: <54b08ad6-ada8-ce1a-b5ae-e56353f2bc31@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1724858876; bh=RfiJ6pgX1A0E1OHA6UBwVOneR3KnHEIzmXAOxmxLpxQ=; h=Date:To:Cc:From:Subject; b=aS0VR2wdA67WrPuf60gkZKNJfZJJ8segrC6hYTa5RoO3nBwitWzFhrkoDI7nJTTEN CblmSWV8+kssE4iSq2b1BcLP2PGrI1X2Nbt+/v2Vd11uLuygLoyBTiMwq4mHDA5Hmn cYCW4sDHzO0SFoIISYY2wOixJwq+HqNJf8BZch8DnOwDraK0p1Sq2wYNLykXmhFpIw lT0yZJTB+FTsqf0FzEDP0ABoG8F9SbmdejcnkUGwENYSRlycccX62Gv3QENWeGbOPD 9mMb3UWwaefax7PIBx7O3/x2rAxHCQ8edIA9xvnBdTaCtAhb3KmiT2yWmc43w3nWHi R4AIS/jytnq4g== Date: Wed, 28 Aug 2024 23:27:27 +0800 MIME-Version: 1.0 Content-Language: en-US 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: , Reply-to: Adam Faiz X-ACL-Warn: , Adam Faiz via Guix-patches X-Patchwork-Original-From: Adam Faiz via Guix-patches via From: Adam Faiz Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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 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")