From patchwork Thu Feb 20 19:09:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ashvith Shetty X-Patchwork-Id: 38884 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 5A67027BBE2; Thu, 20 Feb 2025 19:11:41 +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 426AB27BBEA for ; Thu, 20 Feb 2025 19:11:40 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tlBwv-0003XU-Gg; Thu, 20 Feb 2025 14:11:05 -0500 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 1tlBwu-0003Wp-0t for guix-patches@gnu.org; Thu, 20 Feb 2025 14:11:04 -0500 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 1tlBwt-0000mx-OH for guix-patches@gnu.org; Thu, 20 Feb 2025 14:11:03 -0500 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=8BAq0ADSu2reLqDlHyoWzgYw7CUX8w9pHkvyRyuxIZ0=; b=vxUDcKiioRc0RuZk56Fnlh79H/ufgDNdpnamoTJLQXKLO+dpgLw89W8GsOREPLwqzUSzZ/pIRUue6SIpCArz2J1nIIEL9H5BZ/dfmRVmtOBXBu1fY9OmGA6ddgOW6y0zTOgMvgYCcnWDxv+IpSYtGp5pXIbYPEukkj8t2eNyq1d0sYcaWfm2mVEOgUDwrzHfm1vAtUeuyB3blpEWQRcVtjQRtVpMofa01SSwVHuc+9pv5+kGt827zw1qxC2pjRbqigMxrgXkfinYqFg13SnBR0W5GnOJC+Clo8qcylHmPxfSsL35AU2zZCJWnuGH35JPxapKegbyso46XITDHK9oyQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tlBwt-00014e-Iv for guix-patches@gnu.org; Thu, 20 Feb 2025 14:11:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75522] [PATCH v1 1/3] gnu: Add zig-clap. Resent-From: Ashvith Shetty Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 20 Feb 2025 19:11:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75522 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75522@debbugs.gnu.org Cc: Hilton Chain , Ashvith Shetty Received: via spool by 75522-submit@debbugs.gnu.org id=B75522.17400786293851 (code B ref 75522); Thu, 20 Feb 2025 19:11:03 +0000 Received: (at 75522) by debbugs.gnu.org; 20 Feb 2025 19:10:29 +0000 Received: from localhost ([127.0.0.1]:41146 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlBwK-0000zs-Hi for submit@debbugs.gnu.org; Thu, 20 Feb 2025 14:10:29 -0500 Received: from sender-pp-o91.zoho.in ([103.117.158.91]:2131) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlBw8-0000sw-6K for 75522@debbugs.gnu.org; Thu, 20 Feb 2025 14:10:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1740078594; s=zoho; d=zohomail.in; i=ashvithshetty0010@zohomail.in; h=From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:Message-ID:In-Reply-To:References:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=8BAq0ADSu2reLqDlHyoWzgYw7CUX8w9pHkvyRyuxIZ0=; b=huvmyKr1J6RDX1GAk9UK7SMqqCtf+X5SOuXmB1BI6ft0S7ElvwJoyD15lEhMv6m2 ilsaepnJ23kH2lOaqTXqlu1x/sXSt5hB+I6ZQW9K547Ko1jc87CnbEhQ4PfvVcf4MfK vBrTNDAWTRc9T7GzP2jr2Vipc+WVRwesBcstvQ04= Received: by mx.zoho.in with SMTPS id 1740078592559280.4690353307676; Fri, 21 Feb 2025 00:39:52 +0530 (IST) Date: Fri, 21 Feb 2025 00:39:10 +0530 Message-ID: <20250220190940.14643-2-ashvithshetty0010@zohomail.in> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250220190940.14643-1-ashvithshetty0010@zohomail.in> References: <20250220190940.14643-1-ashvithshetty0010@zohomail.in> MIME-Version: 1.0 X-ZohoMailClient: External 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: Ashvith Shetty X-ACL-Warn: , Ashvith Shetty via Guix-patches X-Patchwork-Original-From: Ashvith Shetty via Guix-patches via From: Ashvith Shetty 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: Ashvith Shetty * gnu/packages/zig-xyz.scm (zig-clap): New variable. Change-Id: I8982047890799dfe32113f63e63dd7b6110eb8c6 --- gnu/packages/zig-xyz.scm | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/zig-xyz.scm b/gnu/packages/zig-xyz.scm index a76dbb0473..9b6bf09b56 100644 --- a/gnu/packages/zig-xyz.scm +++ b/gnu/packages/zig-xyz.scm @@ -3,6 +3,7 @@ ;;; Copyright © 2023 Ekaitz Zarraga ;;; Copyright © 2023 Felix Lechner ;;; Copyright © 2024 Justin Veilleux +;;; Copyright © 2025 Ashvith Shetty ;;; ;;; This file is part of GNU Guix. ;;; @@ -301,6 +302,47 @@ (define-public zig-xkbcommon (home-page "https://codeberg.org/ifreund/zig-xkbcommon") (license license:expat))) +(define-public zig-clap + (package + (name "zig-clap") + (version "0.9.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/Hejsil/zig-clap") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1xjskvyib3kai3nmp574zfm07yvjsbzsxfysj96ss9339nq07ix6")))) + (build-system zig-build-system) + (arguments + (list + #:zig zig-0.13)) + (home-page "https://github.com/Hejsil/zig-clap") + (synopsis "Command line argument parsing library for Zig") + (description + "A simple and easy to use command line argument parser library for Zig. + +Features include: +@itemize +@item Short arguments -a +@itemize +@item Chaining -abc where a and b does not take values. +@item Multiple specifications are tallied (e.g. -v -v). +@end itemize +@item Long arguments --long +@item Supports both passing values using spacing and = (-a 100, -a=100) +@itemize +@item Short args also support passing values with no spacing or = (-a100) +@item This all works with chaining (-ba 100, -ba=100, -ba100) +@end itemize +@item Supports options that can be specified multiple times (-e 1 -e 2 -e 3) +@item Print help message from parameter specification. +@item Parse help message to parameter specification. +@end itemize") + (license license:expat))) + (define-public zig-zls-0.10 (package (name "zig-zls")