From patchwork Mon Jul 19 12:02:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Thomas Albers Raviola X-Patchwork-Id: 31510 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 5360227BC6B; Mon, 19 Jul 2021 18:51:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS, T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 60E3F27BC78 for ; Mon, 19 Jul 2021 18:51:06 +0100 (BST) Received: from localhost ([::1]:33794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5XQ1-0003Ju-CD for patchwork@mira.cbaines.net; Mon, 19 Jul 2021 13:51:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5US6-00034w-13 for guix-patches@gnu.org; Mon, 19 Jul 2021 10:41:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:48138) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5US5-0000qL-Pp for guix-patches@gnu.org; Mon, 19 Jul 2021 10:41:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m5US5-0003Pz-OV for guix-patches@gnu.org; Mon, 19 Jul 2021 10:41:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49643] [PATCH] z80asm and z80dasm Resent-From: Thomas Albers Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 19 Jul 2021 14:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49643 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49643@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162670561613078 (code B ref -1); Mon, 19 Jul 2021 14:41:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jul 2021 14:40:16 +0000 Received: from localhost ([127.0.0.1]:59684 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5URL-0003Oq-2k for submit@debbugs.gnu.org; Mon, 19 Jul 2021 10:40:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:49436) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m5Rwe-00015F-G3 for submit@debbugs.gnu.org; Mon, 19 Jul 2021 08:00:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Rwe-0003dM-3L for guix-patches@gnu.org; Mon, 19 Jul 2021 08:00:24 -0400 Received: from vmd69031.contaboserver.net ([161.97.172.214]:60764 helo=mail.thomaslabs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5Rwa-0002Mz-Fg for guix-patches@gnu.org; Mon, 19 Jul 2021 08:00:23 -0400 Received: from laptop.thomaslabs.org (unknown [31.17.254.141]) by mail.thomaslabs.org (Postfix) with ESMTPSA id ABF099C001B for ; Mon, 19 Jul 2021 14:00:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thomaslabs.org; s=mail; t=1626696015; bh=Z0QYc+Tfj9mtLBJvW4LAQib8gXyZ22w9kELqg+QG2qo=; h=From:To:Subject:Date:From; b=Y592cgcJoQtQ/8B8wk7JS126y8nG9Waajwqpm4ZUW7IsQRMGBgU55y2bxLAJW8Nl+ v6HlLoktaLFeDfhNbRj/yMxTQd/bAv4EiOrxmadFTqkMBjzUfqn+ZIPwJ4hE7vUb0U gUYvW8UNBqnG7HSuvQluMzDo9l8jYZRk/MHAulBhYKFUemQqyaCIXuUhpc5MUO0Frk OaC8Jh+5KcYRpYF2DpUVqEe2nKb1HGsQ1RpBy4d6WhPVj6imLX2UQXDTyVTcPwAQ4X KAoYCMfNZ1mT7p0ESCx3xiJyCn5WC+vY27purRDYuKWiH61uSyiqLKQm5jnf+Qyk+y v5nXgjqrq9SHA== User-agent: mu4e 1.4.15; emacs 27.2 Date: Mon, 19 Jul 2021 14:02:12 +0200 Message-ID: <87v956mrzv.fsf@thomaslabs.org> MIME-Version: 1.0 Content-Disposition: attachment; filename=z80-tools.patch Content-Description: Patch adding z80asm and z80dasm to (gnu packages assembly) Received-SPF: pass client-ip=161.97.172.214; envelope-from=thomas@thomaslabs.org; helo=mail.thomaslabs.org 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 19 Jul 2021 10:40:14 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Mon, 19 Jul 2021 13:50:54 -0400 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" Reply-to: Thomas Albers X-ACL-Warn: , Thomas Albers via Guix-patches X-Patchwork-Original-From: Thomas Albers via Guix-patches via From: Thomas Albers Raviola X-getmail-retrieved-from-mailbox: Patches diff --git a/gnu/packages/assembly.scm b/gnu/packages/assembly.scm index 51c0572674..5bf1a1c98a 100644 --- a/gnu/packages/assembly.scm +++ b/gnu/packages/assembly.scm @@ -9,6 +9,7 @@ ;;; Copyright © 2020 Jakub Kądziołka ;;; Copyright © 2020 Christopher Lemmer Webber ;;; Copyright © 2020 B. Wilson +;;; Copyright © 2021 Thomas Albers Raviola ;;; ;;; This file is part of GNU Guix. ;;; @@ -533,3 +534,50 @@ family of command line utility wrappers in the default output. Each of the cli tools is named like @code{xed*}. Documentation for the cli tools is sparse, so this is a case where ``the code is the documentation.''") (license license:asl2.0))) + +(define-public z80asm + (package + (name "z80asm") + (version "1.8") + (source (origin + (uri "http://download.savannah.nongnu.org/releases/z80asm/z80asm-1.8.tar.gz") + (sha256 + (base32 "0r2za4qb7b0n13xksj6vwddixn2jzcc5h8qk06kxzkc20naakyv7")) + (method url-fetch))) + (build-system gnu-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'check) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((bin (string-append (assoc-ref outputs "out") + "/bin"))) + (install-file "z80asm" bin) + #t)))))) + (synopsis "Assembler for the Z80 microprcessor") + (description "Assembler for the Z80 microprcessor. The assembler +aims to be portable and complete. It assembles all official +mnemonics, but it also aims to assemble the unofficial mnemonics.") + (home-page "http://savannah.nongnu.org/projects/z80asm") + (license license:gpl3))) + +(define-public z80dasm + (package + (name "z80dasm") + (version "1.1.6") + (source (origin + (uri "https://www.tablix.org/~avian/z80dasm/z80dasm-1.1.6.tar.gz") + (sha256 + (base32 "0q6k1dy34p1mncq5cp5a3yakka9a9j4llw6vqjh81wr8n1xrdlvn")) + (method url-fetch))) + (build-system gnu-build-system) + (synopsis "Disassembler for the Zilog Z80 microprocessor and compatibles") + (description "z80dasm is a disassembler for the Zilog Z80 +microprocessor and compatibles. It can be used to reverse engineer +programs and operating systems for 1980's microcomputers using this +processor architecture (for example Sinclair ZX81, Spectrum and many +others).") + (home-page "https://www.tablix.org/~avian/blog/articles/z80dasm/") + (license license:gpl2)))