From patchwork Thu Oct 27 02:08:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 44145 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 7189827BBEB; Thu, 27 Oct 2022 03:10:05 +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 C309F27BBE9 for ; Thu, 27 Oct 2022 03:10:03 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onsKP-000731-UK; Wed, 26 Oct 2022 22:09:05 -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 1onsKN-0006rs-GY for guix-patches@gnu.org; Wed, 26 Oct 2022 22:09:03 -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 1onsKN-0005n2-8V for guix-patches@gnu.org; Wed, 26 Oct 2022 22:09:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onsKM-0007hD-KO for guix-patches@gnu.org; Wed, 26 Oct 2022 22:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58811] [PATCH] gnu: Add uxn. Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 27 Oct 2022 02:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58811 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58811@debbugs.gnu.org Cc: Antero Mejr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166683652129553 (code B ref -1); Thu, 27 Oct 2022 02:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Oct 2022 02:08:41 +0000 Received: from localhost ([127.0.0.1]:55664 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onsK1-0007ga-4M for submit@debbugs.gnu.org; Wed, 26 Oct 2022 22:08:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:49604) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onsJw-0007gO-9I for submit@debbugs.gnu.org; Wed, 26 Oct 2022 22:08:40 -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 1onsJw-0003c4-4W for guix-patches@gnu.org; Wed, 26 Oct 2022 22:08:36 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1onsJs-0005lS-I9 for guix-patches@gnu.org; Wed, 26 Oct 2022 22:08:35 -0400 Received: from smtp202.mailbox.org (smtp202.mailbox.org [IPv6:2001:67c:2050:b231:465::202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4MyTcD0pNdz9smp for ; Thu, 27 Oct 2022 04:08:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1666836508; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dLam+h+ALpOqdCT0By8JDD/CfCJMPiJt+V0kE/KOBTw=; b=nsjwsNZwnSeWVJ4fHttzktXM1QJl5qJJjOCGfo39DcDPGxdXsI56Ys5kt59zoNGNsMvwGL lDFvvpxILyYuqnIUtEeXa0PMC5svbG5eSQnOYv93GEIzEuJ+AKp6xCoRlpVcTGLjFbGw3n mnI1NLTo9eit02XFaqgro3nzXTFemRnYg1Ybp4IJ9ABX731bSOzm2EG3+HH9tvFw8GLFB8 kDXeeIo8gbqOwzDkmHMH/bX0TD54yzzygzV1PyfOXpumw31RR55tio48t2sI3yjuj1z9gz 2uxOVRCA5xyePpnLceVyirZ43vcCoa8pjUXXt5Ku15XS8+N9GUTMlrvBvQSQ8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1666836505; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=dLam+h+ALpOqdCT0By8JDD/CfCJMPiJt+V0kE/KOBTw=; b=wOzRLEN0sMKi/m8PDY1hwAAgkh55zW8hnShm+np3vYUK0eRGvLFXwrJojjZzpxIT8sB/mt y5Oi3q5Fbu2EFrWPORkUhQBY8xvb4ErOJzMmgSN3Br+F/GHVpqsl4UXYl3rDYDEiV4Jw/u nFyNLWuaK7k0JzQa48HYLKq+MolT2Oqsj41cRvDtQEiDV3UWqSa1sy5hJ4BUHVOSn34A2Y cfPmAAsVLt086PUbU6BllRa+R1YrBBzpfCu4THuzCsGrXFSey3vfDh1Zvvf5VfZVIkZSc1 3DjZgP5KTErN2DYgzj0M+DMfH6Qt+QYX/zVLyLmbj2+AEK/x5zv+krvL16FL6Q== Date: Thu, 27 Oct 2022 02:08:19 +0000 Message-Id: <20221027020819.5915-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-META: fmu45xdy4fx443rktgmcci4bpd484g5c X-MBO-RS-ID: 9bb16d8d0d5b2f07cda X-Rspamd-Queue-Id: 4MyTcD0pNdz9smp Received-SPF: pass client-ip=80.241.56.171; envelope-from=antero@mailbox.org; helo=mout-p-201.mailbox.org 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: Antero Mejr X-ACL-Warn: , Antero Mejr via Guix-patches X-Patchwork-Original-From: Antero Mejr via Guix-patches via From: Antero Mejr Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emulators.scm (uxn): New variable. --- gnu/packages/emulators.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 08719c336e..79977acff6 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -2494,3 +2494,39 @@ (define-public cc65 (description "This package provides a development environment for 6502 systems, including macro assembler, C compiler, linker, librarian and several other tools.") (home-page "https://cc65.github.io/") (license license:zlib))) + +(define-public uxn + (let ((commit "1b2049e238df96f32335edf1c6db35bd09f8b42d") + (revision "1")) + (package + (name "uxn") + (version (git-version "0.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~rabbits/uxn") + (commit commit))) + (file-name (string-append name "-" version)) + (sha256 + (base32 + "0d3hy1db1mfk2l7q7wdxvp1z0vkmyyb9pdp81d9zm58ylpxaq2cp")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;no tests + #:phases #~(modify-phases %standard-phases + (delete 'configure) + (replace 'build + (lambda _ + (setenv "CC" #$(cc-for-target)) + (invoke "./build.sh" "--norun"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin"))) + (copy-recursively "bin" bin))))))) + (inputs (list sdl2)) + (home-page "https://100r.co/site/uxn.html") + (synopsis "Assembler and emulator for the Uxn stack-machine") + (description + "This package provides an assembler and emulator for the Uxn +stack-machine, written in ANSI C. Graphical output is implemented using SDL2.") + (license license:expat))))