From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2AJAFx1Cz2bZPAEAqHPOHw:P1 (envelope-from ) for ; Wed, 28 Aug 2024 15:28:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2AJAFx1Cz2bZPAEAqHPOHw (envelope-from ) for ; Wed, 28 Aug 2024 17:28:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=IbtfQLrq; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=aS0VR2wd; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1724858909; h=from:from:sender:sender:reply-to: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=qid3yvKalqlK6ylo3ek24mU6rajYct4UGi2bnZVP+lM=; b=MbTnEtqgFPebzjVdbCIhB4B+NobXesS1ez4RoNHkOL45G18lV18xrZK0fO1bNMZR4FYG8s tl3r+urPGH6RpmYvCJ4TG+8dHEoSqssFBMDBNZd+P57xdawC129PcsHDEGGECs3hK1uOk4 YD00r6mI3HT+l58m3wavVtueNAZnrMliTQ6CTVDzQ9pPQ7rZIjkNRagQgwOV0eojKyFJkd 7zi/GK2YGWCEu58A+46LuLxkvx5Uvji/djjjF/ts1inF57+4l23u0c7YhXPO9QJl5D4U4Q C1MlALQtF3uADnoHZz0XOVnvSyiPPX4Z2toFTG4ZoU4KAQIPqf51Yvd9K75ZIA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724858909; a=rsa-sha256; cv=none; b=oHTPBJdy4HYFtEG52tyn0BTBiduVztBxoPaaNwCGM86ZM8xO38AOALsLvR4TkBY7RH8iuV 6HX2v1mpFD3o0nFrkkAkRHHYqyT74eQJw29gI9hvIiJveHieJrSzzXmsfRfIEmB6gtFOLh pVNpU+fsVsvFA1ihuNTcyYLZ8fytEgCm9I86GAQxdBECoT9ZyWIkvnv6mC1hFN82MJjbCL 155LbbtzYTxcERP12FGzLdqDLw5mZkpqffDwtBl5tDZOO8v4DdtG/y3Upj//Ze9WSKoEtV je/nHanVjJBw67JZ6if/+mv/oWuVZi3fhG8ELLN/OXks7MPMO67UBEMOWcEc1A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=IbtfQLrq; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=aS0VR2wd; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 1B77B65C31 for ; Wed, 28 Aug 2024 17:28:29 +0200 (CEST) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 From: Adam Faiz via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -3.98 X-Spam-Score: -3.98 X-Migadu-Queue-Id: 1B77B65C31 X-Migadu-Scanner: mx11.migadu.com X-TUID: N6evHATxCKp0 >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") -- 2.41.0