From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id S3AgIWl6vWCCDwAAgWs5BA (envelope-from ) for ; Mon, 07 Jun 2021 03:46:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OAwJHGl6vWBcMAAA1q6Kng (envelope-from ) for ; Mon, 07 Jun 2021 01:46:17 +0000 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 6B43C182C0 for ; Mon, 7 Jun 2021 03:46:16 +0200 (CEST) Received: from localhost ([::1]:39348 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lq4LH-0001GJ-Cd for larch@yhetil.org; Sun, 06 Jun 2021 21:46:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq4L3-0001Fm-Qb for guix-patches@gnu.org; Sun, 06 Jun 2021 21:46:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42637) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lq4L3-0007E8-K7 for guix-patches@gnu.org; Sun, 06 Jun 2021 21:46:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lq4L3-0008TR-Nx for guix-patches@gnu.org; Sun, 06 Jun 2021 21:46:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48893] [PATCH] New package: ack Resent-From: Ryan Sundberg Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 07 Jun 2021 01:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48893 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48893@debbugs.gnu.org Cc: Ryan Sundberg X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162303032932533 (code B ref -1); Mon, 07 Jun 2021 01:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 Jun 2021 01:45:29 +0000 Received: from localhost ([127.0.0.1]:54183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lq4KX-0008Sf-1C for submit@debbugs.gnu.org; Sun, 06 Jun 2021 21:45:29 -0400 Received: from lists.gnu.org ([209.51.188.17]:55072) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lq4KV-0008SX-BA for submit@debbugs.gnu.org; Sun, 06 Jun 2021 21:45:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55552) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq4KU-0001EG-L0 for guix-patches@gnu.org; Sun, 06 Jun 2021 21:45:26 -0400 Received: from mail.arctype.co ([138.68.9.245]:37142) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lq4KR-0006sb-SF for guix-patches@gnu.org; Sun, 06 Jun 2021 21:45:26 -0400 Received: from authenticated-user (mail.arctype.co [138.68.9.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.arctype.co (Postfix) with ESMTPSA id DA00411EF11; Sun, 6 Jun 2021 16:51:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arctype.co; s=mail; t=1623023511; bh=tJxQ/ofNGHFBevQiI2zDARHWtFE0AW49yy2EIrGrnko=; h=From:To:Cc:Subject:Date:From; b=rq4deNc6vEqqEU0fZFKcNjWa+/PXHF9GNDlXh1J0GIz6wIJxhshhkh9AdVhp69xrQ 2cFdzM0UTuBCciX8A1AvhWWq/Tct9LXuf7u3nIcrEGDSkFzYY4nrOq+4JxFGn8L7or DWauZ1V/s2gd8GatPInRWR/p7IQEzHguxL1JzZwqHf29hyX9IJJcRLNS2fN4KixOQT jQ16Oul16fEP0V6Q/lzAw/pSxoc2y9mMIcumwb/EcbrJnURtodQ8OCRStj8Hu9RxUV qO464lj/S7BA944FlftQJMAn87AzLu6MZs1ykRF+SEOVdKxaFawm4Le0HB0WOmsQjW rNkk0wMliKHsQ== Date: Sun, 6 Jun 2021 16:51:49 -0700 Message-Id: <20210606235149.25344-1-ryan@arctype.co> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=138.68.9.245; envelope-from=ryan@arctype.co; helo=mail.arctype.co X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Ryan Sundberg X-ACL-Warn: , Ryan Sundberg via Guix-patches From: Ryan Sundberg via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1623030377; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=IriSQLq6FvPRKTlg6R8oVmzs/s4wXxSPzdOoLLpFAWk=; b=RrkeP6FNpCnyAGKMGwcCaSoB5dgeByR1u9vjyUKdoQP3kVBGQ5wp5VEDiJwXFEXrvBvQVz 3DtMNEYJ6ueVadP3rjwCZ9PL5wJxwSi/LXkzSB/lMW7O8gsm1PV0WWiBYpTfjtKCOznRRE 8VLvaiWFvoo/fooGSfm06nM+i9dfOXy0w8J44QEg/YWiWemh9xwy0px/LSOQlm9mt8I8r2 tty3xRhJL3x9npHFVo29tmsuQHBHtPfD/5HCaom/a/97TttPzYbtO4++0cL0+rVQP/8jUe ezHrKiLoLu/XoyP0X6zIl2lj0kxJmaJ4Iesgci9pmBrzTlQ6dJG99b+PBLkiXw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1623030377; a=rsa-sha256; cv=none; b=kO/4NpzwCooHT5sQ4TfV9YujX0qETdelK0J3QyNaaG5+G/pidFPfSwBO95k1Tnxcj6Hr1H DJiKhetOgD1+xiflOMvbwrknsfu30ucsAshM6OTUNRKm0vSW6PoZlVAiUBZrTSLdE+Syia Ac1t6e38RKlP+HYqUl6oo+ONWx5K+9F3/Im5c9vMUuYO98GAvcnJN4A9A3aqbFIFwS0UtO 5Y2Y4mE0KfAcnJx3xY1UES7Pz9XAdB5WwZ84hophp+Fl9Ktjl5DO226N6bFheNh1LM+Cem fESRcp7gwsQeauFo0nuRDthdK5wSkPHz2tGpR/G3qiqFA+/gW7ovAU1cQTiPnA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b=rq4deNc6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=arctype.co header.s=mail header.b=rq4deNc6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 6B43C182C0 X-Spam-Score: -1.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: crhno0eX5Ao+ ack is a grep-like source code search tool. Signed-off-by: Ryan Sundberg --- gnu/packages/search.scm | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 362eb0d95e..a131678936 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -6,6 +6,7 @@ ;;; Copyright © 2018, 2020, 2021 Tobias Geerinckx-Rice ;;; Copyright © 2018 Adam Massmann ;;; Copyright © 2020 Hartmut Goebel +;;; Copyright © 2021 Ryan Sundberg ;;; ;;; This file is part of GNU Guix. ;;; @@ -24,11 +25,12 @@ (define-module (gnu packages search) #:use-module ((guix licenses) - #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license)) + #:select (gpl2 gpl2+ gpl3+ lgpl2.1+ bsd-3 x11 perl-license artistic2.0)) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) #:use-module (guix utils) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) #:use-module (guix build-system python) @@ -50,6 +52,32 @@ #:use-module (gnu packages xdisorg) #:use-module (gnu packages xml)) + +(define-public ack + (package + (name "ack") + (version "3.5.0") + (source + (origin + (method url-fetch) + (uri (string-append "https://beyondgrep.com/ack-v" version)) + (sha256 (base32 "17wq9c1pwisbg4mcmvmdaym8hlawx209iriaxjlw9hwi0v4x6w38")))) + (inputs `(("perl" ,perl))) + (build-system copy-build-system) + (arguments + `(#:install-plan '(("ack" "bin/ack")) + #:phases + (modify-phases %standard-phases + (replace 'unpack + (lambda* (#:key source #:allow-other-keys) + (copy-file source "ack") + (chmod "ack" #o0755) + #t))))) + (home-page "https://github.com/protojure/protoc-plugin") + (synopsis "ack is a grep-like source code search tool.") + (description "Designed for programmers with large heterogeneous trees of source code, ack is written in portable Perl 5 and takes advantage of the power of Perl's regular expressions. ack is designed as an alternative to grep for programmers.") + (license artistic2.0))) + (define-public xapian (package (name "xapian") -- 2.31.1