From patchwork Thu Oct 31 12:46:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 69688 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 8C13027BBEA; Thu, 31 Oct 2024 12:53:45 +0000 (GMT) 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_DNSWL_BLOCKED, 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 0E34C27BBE9 for ; Thu, 31 Oct 2024 12:53:45 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Ug6-0003Lz-4k; Thu, 31 Oct 2024 08:53:30 -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 1t6Ufo-0002ur-8q for guix-patches@gnu.org; Thu, 31 Oct 2024 08:53:13 -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 1t6Ufo-00023J-0X for guix-patches@gnu.org; Thu, 31 Oct 2024 08:53:12 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=tWWcKCyX+bhT8YUDhkeBStdtqXesxCJNBuGmUl3BAo8=; b=GzSS4d9T2qwbEFETrxZ2KnZG9cJ6siAMDihxbAsu9Eal95Vs2hir+4zCIgkVconlR5VO5Zi58cC4nJ02ebmVA4GRxeQ5nLuZBqHlDbXi/4Fw/nj6iMinmw3dkrywigVAjp83f2ildRZDByK/EPVuT37LxHRIwLTqWBhywu2mIbMXtsuUd6dlmkfWg4RuIdHCeaBdS8SZ/0ROVprjqk5MxXxWhI7dX8kqyfSh2yVxSy7Rjow1WBbwABAGcSap/xyYbxE7X1dwyggoJmOesy48F1KAP0KjBqfGfm3L0i20PMhpMhnmHS937vl2AYfI8nZ705arr/JkabhhDG/+5KzOCg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t6Ufn-0007v0-QY for guix-patches@gnu.org; Thu, 31 Oct 2024 08:53:11 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#67921] [PATCH v3 20/24] gnu: Add ghc-filepattern-bootstrap-for-9.6 Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 31 Oct 2024 12:53:11 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67921 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67921@debbugs.gnu.org Cc: dev@jpoiret.xyz, lars@6xq.net, saku@laesvuori.fi Received: via spool by 67921-submit@debbugs.gnu.org id=B67921.173037917130278 (code B ref 67921); Thu, 31 Oct 2024 12:53:11 +0000 Received: (at 67921) by debbugs.gnu.org; 31 Oct 2024 12:52:51 +0000 Received: from localhost ([127.0.0.1]:41962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6UfS-0007s8-A8 for submit@debbugs.gnu.org; Thu, 31 Oct 2024 08:52:50 -0400 Received: from 16.mo550.mail-out.ovh.net ([178.33.104.224]:50461) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t6UfM-0007qx-0l for 67921@debbugs.gnu.org; Thu, 31 Oct 2024 08:52:45 -0400 Received: from director10.ghost.mail-out.ovh.net (unknown [10.108.17.147]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 4XfP6L5ygdz1Z1c for <67921@debbugs.gnu.org>; Thu, 31 Oct 2024 12:52:42 +0000 (UTC) Received: from ghost-submission-5b5ff79f4f-2dsqj (unknown [10.110.188.91]) by director10.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 650841FEB0; Thu, 31 Oct 2024 12:52:42 +0000 (UTC) Received: from ngraves.fr ([37.59.142.105]) by ghost-submission-5b5ff79f4f-2dsqj with ESMTPSA id NKMBBpp9I2dZ4SwAVLPGQw (envelope-from ); Thu, 31 Oct 2024 12:52:42 +0000 Authentication-Results: garm.ovh; auth=pass (GARM-105G0069545bad4-eda9-4ff7-9012-92de99f278fc, CD33DFF0435C6B52A7C438D6B876B70D33D893A4) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 80.214.74.119 Date: Thu, 31 Oct 2024 13:46:59 +0100 Message-ID: <20241031125127.14080-21-ngraves@ngraves.fr> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241031125127.14080-1-ngraves@ngraves.fr> References: <20241031125127.14080-1-ngraves@ngraves.fr> MIME-Version: 1.0 X-Ovh-Tracer-Id: 9050546405415313958 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeeftddrvdekhedggedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffojghfggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepgfetffdvheefudethfduleekvdehffdvffeutdetkeegteevvdduffekgfduvdeknecuffhomhgrihhnpehgihhthhhusgdrtghomhdpfhhilhgvphgrthhtvghrnhdrughirhgvtghtohhrhienucfkphepuddvjedrtddrtddruddpkedtrddvudegrdejgedrudduledpfeejrdehledrudegvddruddtheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepnhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrpdhnsggprhgtphhtthhopedupdhrtghpthhtohepieejledvudesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheehtddpmhhouggvpehsmhhtphhouhht DKIM-Signature: a=rsa-sha256; bh=tWWcKCyX+bhT8YUDhkeBStdtqXesxCJNBuGmUl3BAo8=; c=relaxed/relaxed; d=ngraves.fr; h=From; s=ovhmo4487190-selector1; t=1730379162; v=1; b=fuUi5/78JUy/Sj1N7/NhBCICtWsVh6V21tAZnrwu13WVb09NwqXxFNUfy9lDpILetcq3W/hh uTJftH6VTFd4hXKoQzbbcWKaYjDJRVQAojrgwMJjRZHjle4jN0MHJTPXoBYM3TCVJWJwkshJBgO a1o9FXw06DuwgrW65DeqN3QnoSzxcyZM7t4wVysPRkzcoIxBOcFhrAto6VcxnB+rTsTJCWCdsIv Vw6Jw384e1W7xQeNQDN5Uv9P98lnIOlUbT+hT9l6/0ViV133viohmTHl+JvcYe4HgWMufrrMHcR cteyGsCkcR4JUf37lwrNsHMES9AUy6MgJ6Ohp22CWpZOw== 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: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves 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: Saku Laesvuori * gnu/packages/haskell.scm (ghc-filepattern-bootstrap-for-9.6): New variable. Change-Id: I3778f85d7a14474445295ebd6bbb1f4bfbe4f6d5 --- gnu/packages/haskell.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index d63dde6319..0ffc4df728 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -1638,6 +1638,47 @@ (define ghc-js-flot-bootstrap-for-9.6 requirements of downstream users (e.g. Debian).") (license license:expat))) +(define ghc-filepattern-bootstrap-for-9.6 + (package + (name "ghc-filepattern-bootstrap") + (version "0.1.3") + (source (origin + (method url-fetch) + (uri (hackage-uri "filepattern" version)) + (sha256 + (base32 + "0dlnwnwhsfdkwm69z66wj5d2x9n3la55glq4fsn5rxm2kr1msi6c")))) + (build-system haskell-build-system) + (properties '((upstream-name . "filepattern"))) + (arguments (list #:tests? #f + #:haskell ghc-bootstrap-for-9.6)) + (inputs (list ghc-extra-bootstrap-for-9.6)) + (home-page "https://github.com/ndmitchell/filepattern#readme") + (synopsis "File path glob-like matching") + (description + "This package provides Haskell library for matching files using patterns +such as @code{\\\"src\\/**\\/*.png\\\"} for all @@file{.png} files recursively +under the @@file{src} directory. + +Some of its features include: + +@itemize +@item All matching is O(n). + +@item Most functions pre-compute some information given only one argument. + +@item Uses @code{match} and @code{substitute} to extract suitable strings from +the @code{*} and @code{**} matches, and substitutes them back into other +patterns. + +@item Uses @code{step} and @code{matchMany} to perform bulk matching of many +patterns against many paths simultaneously. + +@item Uses @code{System.FilePattern.Directory} to perform optimised directory +traverals using patterns. +@end itemize") + (license license:bsd-3))) + (define ghc-unordered-containers-bootstrap-for-9.6 (package (name "ghc-unordered-containers-bootstrap")