GNU bug report logs -
#58811
[PATCH] gnu: Add uxn.
Previous Next
Reported by: Antero Mejr <antero <at> mailbox.org>
Date: Thu, 27 Oct 2022 02:09:02 UTC
Severity: normal
Tags: patch
Done: 宋文武 <iyzsong <at> envs.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58811 in the body.
You can then email your comments to 58811 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#58811
; Package
guix-patches
.
(Thu, 27 Oct 2022 02:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Antero Mejr <antero <at> mailbox.org>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 27 Oct 2022 02:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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))))
--
2.37.3
Information forwarded
to
guix-patches <at> gnu.org
:
bug#58811
; Package
guix-patches
.
(Tue, 01 Nov 2022 06:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 58811 <at> debbugs.gnu.org (full text, mbox):
Antero Mejr <antero <at> mailbox.org> writes:
Hello,
> * gnu/packages/emulators.scm (uxn): New variable.
> [...]
> + (lambda _
> + (let ((bin (string-append #$output "/bin")))
> + (copy-recursively "bin" bin)))))))
After built, under /bin, there are:
piano.rom
piano.log
uxncli
launcher.rom
asma.rom
uxnasm
uxnemu
Only uxncli, uxnasm and uxnemu should go into /bin, the rom files can go
into /share/uxn, the piano.log file should be removed.
Can you send an update patch? Thank you!
Information forwarded
to
guix-patches <at> gnu.org
:
bug#58811
; Package
guix-patches
.
(Wed, 02 Nov 2022 14:27:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 58811 <at> debbugs.gnu.org (full text, mbox):
* 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))))
--
2.38.0
Reply sent
to
宋文武 <iyzsong <at> envs.net>
:
You have taken responsibility.
(Fri, 04 Nov 2022 01:40:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Antero Mejr <antero <at> mailbox.org>
:
bug acknowledged by developer.
(Fri, 04 Nov 2022 01:40:02 GMT)
Full text and
rfc822 format available.
Message #16 received at 58811-done <at> debbugs.gnu.org (full text, mbox):
Antero Mejr <antero <at> mailbox.org> writes:
> * gnu/packages/emulators.scm (uxn): New variable.
Pushed, thank you!
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 02 Dec 2022 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 201 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.