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 WMRAAvJWumZHDwAAqHPOHw:P1 (envelope-from ) for ; Mon, 12 Aug 2024 18:39:46 +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 WMRAAvJWumZHDwAAqHPOHw (envelope-from ) for ; Mon, 12 Aug 2024 20:39:46 +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=ZmgNbvMX; dkim=fail ("headers rsa verify failed") header.d=lostca.se header.s=anamika header.b=WoSeT5S3; 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=1723487986; 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=YY51WunUB9GbYSyz8kPNdNtEci/MsXGCdNmc7X+QCJ0=; b=h8uDcT8qVzwmWIkOt8o4Rv5M4sHmhETCRcfRHbuX/9o36h087eR3tJMzB5SDXZCOPI4llN qKQYV3DwdRhTJe9l2SDSbrd+aQXqgaNu0MYlL0qoil60ylLom32TwJrag2kosq23CEs9la tCCZoE8H3iyGgY0fvXk1Iv/g7sdD1CBmuqJ6qcYKMEbqUR5000MJI4AgRreX/JNnZMZ+4l gSCBS6le0LL6hIyWQW26yAjtYwOb9pj9kAroAuCVl7eQcBnMnZ+JMxPa1vUQnYCZ0Y4Jpu 9DQ4GLmNTj38JO2iPFcJ89ORDKCJiUsNZQTPUy4tC6MiIU8PJ47nySa/ASkphA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1723487986; a=rsa-sha256; cv=none; b=oS7WHsd46cT1/6jpZ7KTFbGqY5m1YAnonFYC8xlpdvu+d5FLc1ldxegi2kvrc761CDdogF PpTB2oV2SDpJM+tfAtrdSsdS2gIKosZUvgWKLlb1q4tEDL3HMt5S96D+lU5jDl9lBG6Q69 LVIRPWo8/uG4tpSZptNUcEolKES6Sdtu/3oiShwDv2QGiu2k/HBTkGs7BLzzih5PFs3+PY Kgjop7AuOSbvCvvbgVcwOqDj3hWJ+o28Bh+Y+suEKJYK5qgc2woKukYsJ5leGqsq9RDRxN 90qzp7vri2Y7izwPTUizy5R9gtnsDqgFdSGItG83S43siy5JC3XK+47BNq0PUg== 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=ZmgNbvMX; dkim=fail ("headers rsa verify failed") header.d=lostca.se header.s=anamika header.b=WoSeT5S3; 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 C1A97700F9 for ; Mon, 12 Aug 2024 20:39:44 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sdZx6-0007bC-6e; Mon, 12 Aug 2024 14:39:32 -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 1sdZx5-0007SY-0L for guix-patches@gnu.org; Mon, 12 Aug 2024 14:39:31 -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 1sdZx4-00084m-Mp for guix-patches@gnu.org; Mon, 12 Aug 2024 14:39:30 -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:Date:From:To:Subject; bh=YY51WunUB9GbYSyz8kPNdNtEci/MsXGCdNmc7X+QCJ0=; b=ZmgNbvMXFP+myG4SlNtqBIs9878AaPRrlSOB3/61bFCAHtwyb2C9cFl3B33Ry+sLNmolYE6uH/Xv2MqINRXqwgjE1DTHjVZ2wFOuNoh72rLcYqa2SvxobMySybzlZSMWMfb2T0Iiy8urh6rWAVlLzfE0/EH19P/vCw6JZEMNjHp/a2KfIYFAQpaXRby3+ziJQRxSyMJK6T+O7b379FyThc78YfLqfvrJQ7xn58TBz4Djc++oEOFEm2BIOsn5Syat1OQMrbKcuPVNDIb66gHwyi4LtRrUOrES3SLKKpRPWL7WjQogEmQIleuxbjbm7ORArw3JGUpcHQlX8b/jg2tzvw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sdZxa-0007Ju-Ol for guix-patches@gnu.org; Mon, 12 Aug 2024 14:40:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72595] [PATCH] gnu: Add goawk. Resent-From: ashish.is@lostca.se Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 12 Aug 2024 18:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72595 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72595@debbugs.gnu.org Cc: Ashish SHUKLA X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172348796728073 (code B ref -1); Mon, 12 Aug 2024 18:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 12 Aug 2024 18:39:27 +0000 Received: from localhost ([127.0.0.1]:43825 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdZx0-0007Ii-JT for submit@debbugs.gnu.org; Mon, 12 Aug 2024 14:39:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:35410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sdZwy-0007IW-57 for submit@debbugs.gnu.org; Mon, 12 Aug 2024 14:39:26 -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 1sdZwO-000602-Rr for guix-patches@gnu.org; Mon, 12 Aug 2024 14:38:49 -0400 Received: from anamika.lostca.se ([65.21.75.227]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sdZwM-0007zI-Kw for guix-patches@gnu.org; Mon, 12 Aug 2024 14:38:48 -0400 Received: from localhost.localdomain (poincare.inet6.in [IPv6:2a0a:4cc0:1:12d4::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: abbe) by anamika.lostca.se (Postfix) with ESMTPSA id 306AC217E4; Mon, 12 Aug 2024 18:38:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lostca.se; s=anamika; t=1723487914; h=from:from: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; bh=YY51WunUB9GbYSyz8kPNdNtEci/MsXGCdNmc7X+QCJ0=; b=WoSeT5S3nj1HBg2XZ90t6sflivGW7Px+LDyaXxYN6oNSOYbxUZoHLrOW8skP8qKDp/5RIU 961w8wiQxte/DISIZ+IvBlmth9ekZ2cSvsPwx3bWiiBlsv2AyQ0sItAHiLIfQhKpPRWWch X5h2sVk9PhX78oHp+fLVmVA/vs86hK0= Date: Mon, 12 Aug 2024 18:38:00 +0000 Message-ID: <8a996a8f08f6127e8d3aa9e2a24dffb4a69ea94b.1723487880.git.ashish.is@lostca.se> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=65.21.75.227; envelope-from=ashish.is@lostca.se; helo=anamika.lostca.se 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-to: ashish.is@lostca.se X-ACL-Warn: , "ashish.is--- via Guix-patches" From: "ashish.is--- 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: -1.36 X-Spam-Score: -1.36 X-Migadu-Queue-Id: C1A97700F9 X-Migadu-Scanner: mx11.migadu.com X-TUID: Nk9YFzvQx4MS From: Ashish SHUKLA * gnu/packages/gawk.scm (goawk): New variable. Change-Id: Ib611f1ea55b6a4e115f82e08054ea8d04ec57329 --- gnu/packages/gawk.scm | 47 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/gnu/packages/gawk.scm b/gnu/packages/gawk.scm index 16a4ca5b0a..f407da9d94 100644 --- a/gnu/packages/gawk.scm +++ b/gnu/packages/gawk.scm @@ -4,6 +4,7 @@ ;;; Copyright © 2018, 2022 Efraim Flashner ;;; Copyright © 2021, 2022 Marius Bakke ;;; Copyright © 2022 Paul A. Patience +;;; Copyright © 2024 Ashish SHUKLA ;;; ;;; This file is part of GNU Guix. ;;; @@ -34,7 +35,8 @@ (define-module (gnu packages gawk) #: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 gnu) + #:use-module (guix build-system go)) (define-public gawk (package @@ -236,3 +238,46 @@ (define-public cppawk-egawk (delete "gawk-mpfr") (prepend egawk-next))) (synopsis "cppawk that calls Enhanced GNU Awk by default"))) + +(define-public goawk + (package + (name "goawk") + (version "1.27.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/benhoyt/goawk") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "003idgqj1g41y4sja9gzbds95fl3ba0l20wfgh7hp4kiivgls7r8")))) + (build-system go-build-system) + (native-inputs (list gawk bash-minimal)) + (arguments + (list + #:import-path "github.com/benhoyt/goawk" + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'patch-bin-sh + (lambda* (#:key inputs import-path #:allow-other-keys) + (for-each (lambda (f) + (substitute* (string-append "src/" import-path "/" f) + (("/bin/sh") + (string-append (assoc-ref inputs "bash-minimal") "/bin/sh")) + (("TestCommandLine") ;; failing test case + "SkipCommandLine"))) + (list "goawk_test.go" "interp/interp.go")))) + (replace 'check + (lambda* (#:key inputs import-path #:allow-other-keys) + (let ((test-output (string-append "src/" import-path "/testdata/output"))) + (chmod test-output #o755) + (for-each (lambda (f) + (chmod f #o644)) + (find-files test-output)) + (invoke "go" "test" import-path + "-awk" (string-append (assoc-ref inputs "gawk") "/bin/gawk")))))))) + (home-page "https://github.com/benhoyt/goawk") + (synopsis "GoAWK: an AWK interpreter with CSV support") + (description "Package goawk is an implementation of AWK with CSV support.") + (license license:expat))) base-commit: 2b7e2f44169c3da710534a614b4a0a313a7d272a -- 2.46.0