* [bug#58811] [PATCH] gnu: Add uxn.
@ 2022-10-27 2:08 Antero Mejr via Guix-patches via
2022-11-01 6:47 ` 宋文武 via Guix-patches via
2022-11-02 14:26 ` Antero Mejr via Guix-patches via
0 siblings, 2 replies; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-10-27 2:08 UTC (permalink / raw)
To: 58811; +Cc: Antero Mejr
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [bug#58811] [PATCH] gnu: Add uxn.
2022-10-27 2:08 [bug#58811] [PATCH] gnu: Add uxn Antero Mejr via Guix-patches via
@ 2022-11-01 6:47 ` 宋文武 via Guix-patches via
2022-11-02 14:26 ` Antero Mejr via Guix-patches via
1 sibling, 0 replies; 4+ messages in thread
From: 宋文武 via Guix-patches via @ 2022-11-01 6:47 UTC (permalink / raw)
To: Antero Mejr; +Cc: 58811
Antero Mejr <antero@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!
^ permalink raw reply [flat|nested] 4+ messages in thread
* [bug#58811] [PATCH] gnu: Add uxn.
2022-10-27 2:08 [bug#58811] [PATCH] gnu: Add uxn Antero Mejr via Guix-patches via
2022-11-01 6:47 ` 宋文武 via Guix-patches via
@ 2022-11-02 14:26 ` Antero Mejr via Guix-patches via
2022-11-04 1:40 ` bug#58811: " 宋文武 via Guix-patches via
1 sibling, 1 reply; 4+ messages in thread
From: Antero Mejr via Guix-patches via @ 2022-11-02 14:26 UTC (permalink / raw)
To: 58811; +Cc: Antero Mejr, iyzsong
* 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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* bug#58811: [PATCH] gnu: Add uxn.
2022-11-02 14:26 ` Antero Mejr via Guix-patches via
@ 2022-11-04 1:40 ` 宋文武 via Guix-patches via
0 siblings, 0 replies; 4+ messages in thread
From: 宋文武 via Guix-patches via @ 2022-11-04 1:40 UTC (permalink / raw)
To: Antero Mejr; +Cc: 58811-done
Antero Mejr <antero@mailbox.org> writes:
> * gnu/packages/emulators.scm (uxn): New variable.
Pushed, thank you!
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-04 1:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-27 2:08 [bug#58811] [PATCH] gnu: Add uxn Antero Mejr via Guix-patches via
2022-11-01 6:47 ` 宋文武 via Guix-patches via
2022-11-02 14:26 ` Antero Mejr via Guix-patches via
2022-11-04 1:40 ` bug#58811: " 宋文武 via Guix-patches via
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.