From patchwork Fri Oct 21 17:45:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 43758 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 4B0B327BBEB; Fri, 21 Oct 2022 20:52:15 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 68E9A27BBE9 for ; Fri, 21 Oct 2022 20:52:13 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olxV9-0003Cm-1Q; Fri, 21 Oct 2022 15:16:15 -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 1olw5s-0007tH-AW for guix-patches@gnu.org; Fri, 21 Oct 2022 13:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olw5r-0005LN-2I for guix-patches@gnu.org; Fri, 21 Oct 2022 13:46:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1olw5q-0001bD-OX for guix-patches@gnu.org; Fri, 21 Oct 2022 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58692] [PATCH] gnu: Add emacs-tokei. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 21 Oct 2022 17:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58692 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58692@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16663743626131 (code B ref -1); Fri, 21 Oct 2022 17:46:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2022 17:46:02 +0000 Received: from localhost ([127.0.0.1]:39000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olw5p-0001ak-LR for submit@debbugs.gnu.org; Fri, 21 Oct 2022 13:46:01 -0400 Received: from lists.gnu.org ([209.51.188.17]:52158) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1olw5o-0001ac-AN for submit@debbugs.gnu.org; Fri, 21 Oct 2022 13:46:00 -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 1olw5n-0007t8-N6 for guix-patches@gnu.org; Fri, 21 Oct 2022 13:46:00 -0400 Received: from mx1.dismail.de ([78.46.223.134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olw5l-0005KY-Lb for guix-patches@gnu.org; Fri, 21 Oct 2022 13:45:59 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2a0c11bf for ; Fri, 21 Oct 2022 19:45:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=oncT1/MQmGnaWFQtT0komM0swcqSr96x42CVI7ClZug=; b= AvIIX9ciMSjl/K3PZEIjpyFsCm4FJzWBDtJPTV+Jzss4SBRRBEehXN5RPb1N7s/7 h2C4v4InDgnrJ4CvdWJRORt673DMSyxdbLcUJohvqOVr3znJJYWKWb0XzSBCs6pn Bf9T4ISefULjGsxu4+7xcf+NR5g82nkzrngdwEdfeQfT2IVZiEteF6JprHqKp0eJ 4gU4RGm4fZcCAgfSiehgtxilQab50o7gT3pTnZ8RlnWX0vyfR2k1PwWsv3uAwyQE qq53lfBdCcO6+PnoovTCpriiibQuu/VXRbROa2re+Xj4Rgj8wgd/Vvph4hU6b3vr e9MqxM3y3y7sS9vqxNjznw== Received: from smtp2.dismail.de ( [10.240.26.12]) by mx1.dismail.de (OpenSMTPD) with ESMTP id c9d43053 for ; Fri, 21 Oct 2022 19:45:53 +0200 (CEST) Received: from smtp2.dismail.de (localhost [127.0.0.1]) by smtp2.dismail.de (OpenSMTPD) with ESMTP id ea0b7cd0 for ; Fri, 21 Oct 2022 19:45:53 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id 21331905 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Fri, 21 Oct 2022 19:45:53 +0200 (CEST) Date: Fri, 21 Oct 2022 12:45:48 -0500 Message-Id: <20221021174548.13285-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, SPF_HELO_NONE=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: , Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-tokei): New variable. --- gnu/packages/emacs-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index eef7b54777..af2a89c1d5 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -24395,6 +24395,42 @@ (define-public emacs-hackernews News homepage.") (license license:gpl3))) +(define-public emacs-tokei + (package + (name "emacs-tokei") + (version "0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/nagy/tokei.el") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0gcjlcfxd4bg123gjf7d0vfvfd6zpd0da8svynglca1qhp77jkx1")))) + (build-system emacs-build-system) + (inputs (list tokei)) + (propagated-inputs (list emacs-magit)) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'configure + (lambda* (#:key inputs #:allow-other-keys) + ;; .el is read-only in git. + (make-file-writable "tokei.el") + ;; Specify the absolute file name of tokei so that everything + ;; works out-of-the-box. + (emacs-substitute-variables "tokei.el" + ("tokei-program" + (search-input-file inputs "/bin/tokei")))))))) + (home-page "https://github.com/nagy/tokei.el") + (synopsis "Display codebase statistics in Emacs") + (description +"@code{emacs-tokei} is a major-mode for Emacs, that displays codebase +statistics with the help of @code{tokei}.") + (license license:gpl3+))) + (define-public emacs-youtube-dl (let ((commit "af877b5bc4f01c04fccfa7d47a2c328926f20ef4") (revision "2"))