From patchwork Wed Nov 2 14:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antero Mejr X-Patchwork-Id: 44249 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 38DB827BBEA; Wed, 2 Nov 2022 14:27:21 +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=-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 59A8B27BBE9 for ; Wed, 2 Nov 2022 14:27:19 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqEht-0005Dj-MR; Wed, 02 Nov 2022 10:27: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 1oqEhr-0005DZ-OG for guix-patches@gnu.org; Wed, 02 Nov 2022 10:27: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 1oqEhr-0004me-Ev for guix-patches@gnu.org; Wed, 02 Nov 2022 10:27:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oqEhq-0006LW-AQ for guix-patches@gnu.org; Wed, 02 Nov 2022 10:27:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58811] [PATCH] gnu: Add uxn. References: <20221027020819.5915-1-antero@mailbox.org> In-Reply-To: <20221027020819.5915-1-antero@mailbox.org> Resent-From: Antero Mejr Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 02 Nov 2022 14:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58811 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58811@debbugs.gnu.org Cc: Antero Mejr , iyzsong@envs.net Received: via spool by 58811-submit@debbugs.gnu.org id=B58811.166739920424370 (code B ref 58811); Wed, 02 Nov 2022 14:27:02 +0000 Received: (at 58811) by debbugs.gnu.org; 2 Nov 2022 14:26:44 +0000 Received: from localhost ([127.0.0.1]:46917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqEhY-0006L0-0w for submit@debbugs.gnu.org; Wed, 02 Nov 2022 10:26:44 -0400 Received: from mout-p-202.mailbox.org ([80.241.56.172]:43112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oqEhT-0006Kk-Sg for 58811@debbugs.gnu.org; Wed, 02 Nov 2022 10:26:42 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (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-202.mailbox.org (Postfix) with ESMTPS id 4N2Tj42fjGz9srZ; Wed, 2 Nov 2022 15:26:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1667399192; 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=HdbwjXnCRJvorFkt9AHGY6G2tfgHhC5mTv2oRa5gsrg=; b=hLXuQMHJBh9VL2KiH3luFdknwE/PJOVYPg0z80NoyW2N4YatRq1Eox5zAAB11cDAUsJW7X 2D0YmQI1oMuEXqjt+zCAiIexgh7aaKRCbHc1BtQV1iZUhHEhAAI928zQoK14zILvGJvNmY S2kowDVklkJv17sw+oP0K9CjqLJ+5kMS96KPoC3buMxek6FDDJvMXW/wyqExHJN09TJar1 9E5GZa7ZypXCthIWCm7f9q+EZ2YU55I7A2mfv+uJmnOYIxJ+8LILo7MRnZjtg931Lwk6oy qZT5mnT5D/0zkFwOFuvNvQsEbQFgM9XccJwhByAcgSgkNwIoqQprfLov5+n67w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1667399190; 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=HdbwjXnCRJvorFkt9AHGY6G2tfgHhC5mTv2oRa5gsrg=; b=QfmIrngOmq/wHaMUpd9QKN/a9bRyrVuQ9SZZLBd3vtxe58an1pyhllN/7tV2I0qBMXeTYK dN/4cdHXAnQKfMQv1uESIMQO0Lljq/w90rICN3DRqsDJm5TOTBTvbj6oD2j/pSWeWwqEZ5 B/6L8m0bBDolUQwfU572b4x2gATQktFWEUwBbn7flR2mqz6a5vOlxYEcWpH2kmknHfStVK LYT9lLQisYQgvf7MLeoB7+6CW5E6EDnIiWA6HeCCNHqyqqt8OOCoDztxMFKMQ/D34QDDj8 pSfzT3iVQ3NfgETzKfT23Y30c9WaWEsjmWh4YeMITt6E1Vd4WZRohF6f6wAXNg== Date: Wed, 2 Nov 2022 14:26:21 +0000 Message-Id: <20221102142621.7997-1-antero@mailbox.org> MIME-Version: 1.0 X-MBO-RS-ID: 0728f2e900d081b7dc6 X-MBO-RS-META: z1y1r3skzdcj5rhn549x9w95xtez5k46 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. --- Sorted outputs into bin/ and share/. Replace incorrect --norun build flag with correct --no-run. Removed piano.rom (not supposed to be built). Reformat with guix style. gnu/packages/emulators.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 0c0b78968e..28d3e0ca9a 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -2494,3 +2494,47 @@ (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" "--no-run"))) + (replace 'install + (lambda _ + (let ((bin (string-append #$output "/bin")) + (share (string-append #$output + "/share/uxn"))) + (with-directory-excursion "bin" + (for-each (lambda (x) + (install-file x bin)) + '("uxnasm" "uxncli" "uxnemu")) + (for-each (lambda (x) + (install-file x share)) + '("asma.rom" "launcher.rom"))))))))) + (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))))