~ruther/guix-local

0a4740705090acc4c8a10d4f53afc58c9f62e980 — moksh 6 months ago c030b69
gnu: Add uxn11.

* gnu/packages/emulators.scm (uxn11): New variable.

Closes: guix/guix#3217
Change-Id: I40d0bbcbee439445c60fe6a5653c937db58b0529
Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
1 files changed, 38 insertions(+), 0 deletions(-)

M gnu/packages/emulators.scm
M gnu/packages/emulators.scm => gnu/packages/emulators.scm +38 -0
@@ 4595,6 4595,44 @@ cache visualization.  Developed at FEE CTU for computer architecture classes.")
stack-machine, written in ANSI C.  Graphical output is implemented using SDL2.")
      (license license:expat))))

(define-public uxn11
  (let ((commit "9483266710832a200e2db98d0c6b071d0e72b249")
        (revision "0"))
    (package
      (name "uxn11")
      (version (git-version "1.0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               (url "https://git.sr.ht/~rabbits/uxn11")
               (commit commit)))
         (file-name (git-file-name name version))
         (sha256
          (base32 "14x939ri88kdr9cim2v29f71mfrfw7bxgffa4wcyisfy5jfgsx2c"))))
      (build-system gnu-build-system)
      (arguments
       (list
        #:tests? #f ;no tests
        #:make-flags
        #~(list (string-append "PREFIX="
                               (assoc-ref %outputs "out")))
        #:phases
        #~(modify-phases %standard-phases
            (delete 'configure)
            (replace 'build
              (lambda* (#:key inputs #:allow-other-keys)
                (substitute* "makefile"
                  (("cc") #$(cc-for-target))))))))
      (inputs (list libx11))
      (home-page "https://100r.co/site/uxn.html")
      (synopsis "Emulator for the Uxn stack-machine using X11")
      (description
       "This package provides an emulator for the Uxn
stack-machine.  Graphical output is implemented using X11, and its Console
device contains a @code{exec} port to interface with the host system.")
      (license license:expat))))

(define-public python-keystone-engine
  (package
    (name "python-keystone-engine")