From patchwork Sun Aug 11 05:17:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Faiz X-Patchwork-Id: 66938 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 E754827BBE9; Sun, 11 Aug 2024 06:19:02 +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=unavailable 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 8485927BBE2 for ; Sun, 11 Aug 2024 06:19:01 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sd0yQ-0003Px-F4; Sun, 11 Aug 2024 01:18:35 -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 1sd0yO-0003O8-2n for guix-patches@gnu.org; Sun, 11 Aug 2024 01:18:32 -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 1sd0yN-0006Jh-QB for guix-patches@gnu.org; Sun, 11 Aug 2024 01:18:31 -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=RYEmNuJwFza6O6ET7mWBChoAHRLihjKqKd/C9kTVLiM=; b=PcWtha1L0VuBbR8fIOEnEB4a3VNc8y9qzxq0XSzE10gWVazbnHrcfu47qayQd7KdN4ucGvAiieUtKE/pTiqTkz9cezfCXsfi50MTxqhqCGg5ZefNCwHgHggWcjViifHKBgbi89cn7VxOd6kWAVBnIt3nSQUpPActOGiCsPcPvWHLo39fP0X64vpZXZAe6CJradxPO9mIC1oT+XTgrLIXivkI/LmOgc2z/zL55Wdo4CQTIjyesNaBUDXXWnF1TokX6vEtP1BPeDvZsBM1oHvQzFOCfrHTWbhynjrvz655MgJ42tuI/bF2C/kTg6A9PrY7Kl8TDp9EOsxc9X01API7nw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sd0yr-0007um-MI for guix-patches@gnu.org; Sun, 11 Aug 2024 01:19:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72569] [PATCH 2/4] gnu: Add sort-h. 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: Sun, 11 Aug 2024 05:19: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 Received: via spool by 72569-submit@debbugs.gnu.org id=B72569.172335349630370 (code B ref 72569); Sun, 11 Aug 2024 05:19:01 +0000 Received: (at 72569) by debbugs.gnu.org; 11 Aug 2024 05:18:16 +0000 Received: from localhost ([127.0.0.1]:40572 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd0y8-0007tl-31 for submit@debbugs.gnu.org; Sun, 11 Aug 2024 01:18:16 -0400 Received: from layka.disroot.org ([178.21.23.139]:46134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sd0y6-0007te-Pt for 72569@debbugs.gnu.org; Sun, 11 Aug 2024 01:18:15 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 19A6441A31 for <72569@debbugs.gnu.org>; Sun, 11 Aug 2024 07:17:44 +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 ohVLcSd8Ubxf for <72569@debbugs.gnu.org>; Sun, 11 Aug 2024 07:17:42 +0200 (CEST) Message-ID: <21cba819-e142-80aa-43d2-60e27178aa95@disroot.org> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1723353461; bh=DLhysqaf9GJzY7YpXClESxB8yYwOXz1aqWTMdGATpIk=; h=Date:To:From:Subject; b=IF9VA4AboMObfb3ZqBlwKj8k9CcS2Uq+nNvIGo5n5U8Tb8seSCvdmy7iJ4SL50myv LkUliZIAGPXXPZcq/yNk7zlgioorjoY5LfK+I8nii9iIF5oCGeP5xZSxgHISx3BrIQ g0OFlfoQXE0AAJBo8yG+5xEpnRkdJ/NP+83wCVnUYMdo+jeewzhAlrYwAEnAj7Eyo4 qnkBQepxNeGQ2hMUIeQhEkzXUsf8pmixi7MFvZxvtpsciUu6iLlnUudm4nY/A3rxm4 77uTreLT8G8jDOzNwOQPhCqPOGTx/bUMqfbefsrBmwhA/inbQS3+ZMsqDwjcwO2VUf OUIdlTrTVWaSg== Date: Sun, 11 Aug 2024 13:17:18 +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 0af97f6bab6c523903c075b2578245fc280e6613 Mon Sep 17 00:00:00 2001 Message-ID: <0af97f6bab6c523903c075b2578245fc280e6613.1723353069.git.adam.faiz@disroot.org> In-Reply-To: References: From: AwesomeAdam54321 Date: Sun, 11 Aug 2024 08:41:05 +0800 Subject: [PATCH 2/4] gnu: Add sort-h. * gnu/packages/c.scm (sort-h): New variable. --- gnu/packages/c.scm | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm index a7ac359a94..0b0ff35459 100644 --- a/gnu/packages/c.scm +++ b/gnu/packages/c.scm @@ -695,6 +695,51 @@ (define-public sfsexp expressions.") (license license:lgpl2.1+))) +(define-public sort-h + ;; The latest commit is used as there is no release. + (let ((commit "24f5b8b13810ad130109c7b56daf8e99ab0fe1b8") + (revision "0")) + (package + (name "sort-h") + (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))))))) + (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.") + (license license:expat)))) + (define-public sparse (package (name "sparse")