From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id wHvcGW7CJmSNgwAASxT56A (envelope-from ) for ; Fri, 31 Mar 2023 13:22:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wAXMGG7CJmT4qgAAG6o9tA (envelope-from ) for ; Fri, 31 Mar 2023 13:22:22 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 41A041B975 for ; Fri, 31 Mar 2023 13:22:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piCpZ-000214-My; Fri, 31 Mar 2023 07:22: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 1piCpX-0001zH-5B for guix-patches@gnu.org; Fri, 31 Mar 2023 07:22: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 1piCpW-00087X-Ia for guix-patches@gnu.org; Fri, 31 Mar 2023 07:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1piCpV-0003KE-SL for guix-patches@gnu.org; Fri, 31 Mar 2023 07:22:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62324] [PATCH v2] gnu: Add emu8051. References: In-Reply-To: Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 31 Mar 2023 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 62324@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , c4droid Received: via spool by 62324-submit@debbugs.gnu.org id=B62324.168026170012743 (code B ref 62324); Fri, 31 Mar 2023 11:22:01 +0000 Received: (at 62324) by debbugs.gnu.org; 31 Mar 2023 11:21:40 +0000 Received: from localhost ([127.0.0.1]:60519 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piCp9-0003JS-Ie for submit@debbugs.gnu.org; Fri, 31 Mar 2023 07:21:40 -0400 Received: from mail.envs.net ([5.199.136.28]:60280) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piCp6-0003JI-Tj for 62324@debbugs.gnu.org; Fri, 31 Mar 2023 07:21:38 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id A9E9E38A008E; Fri, 31 Mar 2023 11:21:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1680261695; bh=k7hWjp9ewFv7b0DtwP5OA8u9jq37umRBq/SbiD/xx/w=; h=From:To:Cc:Subject:Date:From; b=lp4e9h9hvRjJn/MgDhtEEjsZJXUGc/uG9XxJiFFuXu7/CxkS8oF/SlJ/BzqLmmQkA IE6ZBu8kGKmFb9TjkQ1HWSUKc1V4n/JgSqUqOhTKRfxnpQJG5L8J2yY7ohykLi+NAK BTpHpQeW9+m/kdu6jXUDlb0vCxySA6NaQWTP++CqYj6MSLdNIeBTu87fZO9LIXx1Ma smRHt/NvjzAaJ0tepuekZLVk3KZC5bZsulBzYMJZKHZH3YsCzhmEG0pNm/u0Zgi+Qa AB9doeqiAZxEB2kLB7VRikaG+h1BntkYLaWf6w0WDXhU9AqFYwVxbZFVK3TCXPsOR7 4ozouNn6UanXCDZQd0XgLIHwkFkKKieMJkRkGE0wDcuPT2WYKuKtTgOfka8nH4m7/s pu2TdxYNmMDd6UNx8mlcHrBIZq6NEUdgczAfKudw8WoKHuKd4Q5EKLYHtzY5679r/s 45/2Vtb1LkDHKZX++esNXH+j04ys81tIf60z0fiiwqxDayM6JfEPPauE5igvJ2su1O 6yH68yVvMbQxMUtpmJWyQ/nTFIzio0ahwMA1HsAkqdXkx0IQkABuAHDBc0oZ1cTf1R eE6MukwcZyhRyHd1C1XFgIsWktMmRP6p+Ur2rXcwur1pm+hztdfhF4g4oqirWzGP6c eHPkVwfGLO+lIrxF9ryuJb+I= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Rl_Voa1f7pS7; Fri, 31 Mar 2023 11:21:31 +0000 (UTC) Received: from localhost (unknown [36.170.59.22]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.envs.net (Postfix) with ESMTPSA; Fri, 31 Mar 2023 11:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 883bf35d; Fri, 31 Mar 2023 11:22:06 +0000 (UTC) Date: Fri, 31 Mar 2023 19:22:04 +0800 Message-Id: <20230331112204.2427-1-iyzsong@envs.net> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Reply-to: iyzsong@envs.net X-ACL-Warn: , iyzsong--- via Guix-patches From: iyzsong--- via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680261742; a=rsa-sha256; cv=none; b=f5JDZF86Jb0tZaqK76jAIxRC9rGDYYyrmslqfRMmWmjhOn6rwX6KCvgJmODzx4nOOs3soS S+LIFFjg/0m+nmgDgfjxhF9HHYuVKof4sH0uIZ9xGE7Pgh47764HHL0la5ZY9e9ya165HL 9ZC1ojLe5sNXsP9zBzx/Io2bFXDyVzxeMnmKCMf2DFXQ4ELoW9z8XZwUfue6BlzVD5uFEA lskzE7c1XP/gi2YwPAwhyewbeftzoIzVWd/jkVkRNT+JL6ZN7baMovCAoNZXRkUsSrkits VKcLS9Qiy4fxG71zjmImsXu3J8kNz6yEvPD7MRL1avl9GFvv4j7n/JYdGNIbMg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=lp4e9h9h; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1680261742; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=k7hWjp9ewFv7b0DtwP5OA8u9jq37umRBq/SbiD/xx/w=; b=MxPltE1GW8ELRSrsc4UsnUIjMeKWTc/hPrUvFEo8lfPHGEQmtWPMIROyCipECeWuAyP072 xAWHrJEoar5ZUGRJzB9/IRS+YKSG4V2oqNSuYOy0tnr2LC302UrAvb6rcKN7GTMMRqiHBS 9qWi5AmXrok3M3pjyBkLT3+C9cZ+pc1wE1I0xMnq8GdFPZ9t6fvy2kbW3VEa4uWtZCyJ5F IER/z1b4b1yxsmJMiL6kbH5AOkMJfHgRqWOrecZ8rnw2ZfBFEgt8+8bfBy7s+LYkkObrLv 1cAUVDOlrMEOs5DXy+uz9XVjpTsPhFR8gDc/ew5jOz9RP3Eyh6bSb9Sj/dUNgA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=envs.net header.s=modoboa header.b=lp4e9h9h; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -4.52 X-Spam-Score: -4.52 X-Migadu-Queue-Id: 41A041B975 X-TUID: ZN/Hm9nzPsbb From: c4droid * gnu/packages/emulator.scm (emu8051): New variable. Reviewed-by: 宋文武 --- gnu/packages/emulators.scm | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/emulators.scm b/gnu/packages/emulators.scm index 166c3b4ec6..7e73b217ea 100644 --- a/gnu/packages/emulators.scm +++ b/gnu/packages/emulators.scm @@ -17,6 +17,7 @@ ;;; Copyright © 2021 Felix Gruber ;;; Copyright © 2021 Maxim Cournoyer ;;; Copyright © 2021 Guillaume Le Vaillant +;;; Copyright © 2023 c4droid ;;; ;;; This file is part of GNU Guix. ;;; @@ -2580,3 +2581,42 @@ (define-public uxn "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)))) + +(define-public emu8051 + (let ((commit "5dc681275151c4a5d7b85ec9ff4ceb1b25abd5a8") + (revision "1")) + (package + (name "emu8051") + (version (git-version "0.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jarikomppa/emu8051") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xxmkcwvd5fjnhwbricafg4xvxvr8dxhfanyfp4rbksw37dgk2fx")) + (modules '((guix build utils))) + (snippet #~(begin + ;; Replace LDFLAGS -lcurses to -lncurses + (substitute* "Makefile" + (("-lcurses") "-lncurses")))))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ;No test suite + #:make-flags #~(list (string-append "CC=" + #$(cc-for-target))) + #:phases + #~(modify-phases %standard-phases + (delete 'configure) ;No ./configure script + (replace 'install + ;; No installation procedure + (lambda _ + (install-file "emu" + (string-append #$output "/bin"))))))) + (inputs (list ncurses)) + (home-page "https://github.com/jarikomppa/emu8051") + (synopsis "8051/8052 emulator with curses-based UI") + (description "emu8051 is a simulator of the 8051/8052 microcontrollers.") + (license license:expat)))) -- 2.39.2