From patchwork Mon Jul 10 09:24:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: flabbergasted X-Patchwork-Id: 51659 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 1DB6027BBEA; Mon, 10 Jul 2023 10:26:12 +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=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 C348027BBE2 for ; Mon, 10 Jul 2023 10:26:10 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIn9j-0008Ae-7B; Mon, 10 Jul 2023 05:26:07 -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 1qIn9e-0008AC-8V for guix-patches@gnu.org; Mon, 10 Jul 2023 05:26:02 -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 1qIn9d-000114-Un for guix-patches@gnu.org; Mon, 10 Jul 2023 05:26:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIn9d-0007Vi-OX for guix-patches@gnu.org; Mon, 10 Jul 2023 05:26:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64552] [PATCH] gnu: Add dhex. Resent-From: flabbergasted Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 10 Jul 2023 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64552 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64552@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.168898111028804 (code B ref -1); Mon, 10 Jul 2023 09:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jul 2023 09:25:10 +0000 Received: from localhost ([127.0.0.1]:47752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIn8n-0007UW-Lr for submit@debbugs.gnu.org; Mon, 10 Jul 2023 05:25:10 -0400 Received: from lists.gnu.org ([209.51.188.17]:55834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIn8k-0007UK-Bc for submit@debbugs.gnu.org; Mon, 10 Jul 2023 05:25:07 -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 1qIn8a-0007zo-6C for guix-patches@gnu.org; Mon, 10 Jul 2023 05:24:58 -0400 Received: from mailtransmit05.runbox.com ([2a0c:5a00:149::26]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIn8U-0000Tl-6B for guix-patches@gnu.org; Mon, 10 Jul 2023 05:24:55 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit05.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qIn8L-009sAM-Ba for guix-patches@gnu.org; Mon, 10 Jul 2023 11:24:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nofog.net; s=selector1; h=Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=i1ebY0c/1LJCIdprxucfwtCrYoDmLV49ylYbP2CXe40=; b=Vmsf/Hjku5yG+sKMjJclzdTET a4OYf6rSSALjM0JbKLe56WOxC5ZQbT607/dgy34+x/aBFypfjJiHWk0WkuV8xXVBuWXgsEynihKTs 7jDrjt4v0asingfJ2UIvxMnq3/9AsuSHnpfa6KhJpHfztK2z7Gbkw897OjuHHHXZXvwiiptLTYmp6 7pt6565L/wWjEWfz8dBpkpQ3LBGdgi7PSdhTqi1c2AF2NodshH3W9Kv1VObm2gy+r9+aptsbqn3gI M97wD1tkHKdwaRsZ09V+di6wTOmg3WO5i6W5D5uyY9UxLlZ6KKYit5F9iCLCrhlf5MOG/qKFDTvtL PrCca5mWw==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qIn8K-0007uX-Ry for guix-patches@gnu.org; Mon, 10 Jul 2023 11:24:41 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (1160150)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1qIn85-000500-GA for guix-patches@gnu.org; Mon, 10 Jul 2023 11:24:25 +0200 Date: Mon, 10 Jul 2023 10:24:20 +0100 From: flabbergasted Message-ID: <29a2c5263ac72f950491f627b6055ecb675f0068.1688931860.git.flabbergasted@nofog.net> MIME-Version: 1.0 Content-Disposition: inline Received-SPF: pass client-ip=2a0c:5a00:149::26; envelope-from=flabbergasted@nofog.net; helo=mailtransmit05.runbox.com 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, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_TEMPERROR=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: , 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 * gnu/packages/hexedit.scm (dhex): New variable. --- gnu/packages/hexedit.scm | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: f0ca6346a46c605a590bfd77b84e143a8c759a3b diff --git a/gnu/packages/hexedit.scm b/gnu/packages/hexedit.scm index 79c14a2..002f6d0 100644 --- a/gnu/packages/hexedit.scm +++ b/gnu/packages/hexedit.scm @@ -29,6 +29,8 @@ (define-module (gnu packages hexedit) #:use-module (gnu packages ncurses) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix gexp) + #:use-module (guix utils) #:use-module (guix build-system gnu)) (define-public hexedit @@ -69,6 +71,50 @@ (define-public hexedit (home-page "http://rigaux.org/hexedit.html") (license license:gpl2+))) +(define-public dhex + (package + (name "dhex") + (version "0.69") + (source (origin + (method url-fetch) + (uri (string-append "https://www.dettus.net/dhex/" name "_" + version ".tar.gz")) + (sha256 + (base32 + "06y4lrp29f2fh303ijk1xhspa1d4x4dm6hnyw3dd8szi3k6hnwsj")))) + (build-system gnu-build-system) + (arguments + (list + #:tests? #f ;no tests provided + #:make-flags + #~(list (string-append "CC=" #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ;no configure script + (replace 'install ;multiple issues with provided 'make install' + (lambda _ + (let ((bin (string-append #$output "/bin")) + (man1 (string-append #$output + "/share/man/man1")) + (man5 (string-append #$output + "/share/man/man5"))) + (mkdir-p bin) + (install-file "dhex" bin) + (mkdir-p man1) + (install-file "dhex.1" man1) + (mkdir-p man5) + (install-file "dhexrc.5" man5) + (install-file "dhex_markers.5" man5) + (install-file "dhex_searchlog.5" man5))))))) + (inputs (list ncurses)) + (home-page "https://www.dettus.net/dhex/") + (synopsis "View, edit, and diff files in hexadecimal") + (description + "Dhex is hex editor which includes a diff mode, which can be used to +easily and conveniently compare two binary files. It is based on ncurses +and is themeable.") + (license license:gpl2))) + (define-public ht (package (name "ht")