Advertisement
Guest User

Untitled

a guest
Aug 30th, 2021
4,352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. (define-public python-pyxel
  2. (package-with-c-toolchain
  3. (package
  4. (name "python-pyxel")
  5. (version "1.4.3")
  6. (source
  7. (origin
  8. (method git-fetch)
  9. (uri (git-reference
  10. (url "https://github.com/kitao/pyxel")
  11. (commit (string-append "v" version))))
  12. (modules '((guix build utils)))
  13. (snippet
  14. '(begin
  15. ;; Remove bundled binaries.
  16. (delete-file-recursively "pyxel/core/bin")
  17. #t))
  18. (sha256
  19. (base32
  20. "0bwsgb5yq5s479cnf046v379zsn5ybp5195kbfvzr9l11qbaicm9"))))
  21. (build-system python-build-system)
  22. (arguments
  23. `(#:phases
  24. (modify-phases %standard-phases
  25. (delete 'check)
  26. (add-before 'build 'build-library
  27. (lambda* (#:key inputs #:allow-other-keys)
  28. (let* ((sdl2 (assoc-ref inputs "sdl2"))
  29. (sdl2-include (string-append sdl2 "/include/SDL2")))
  30. (setenv "CPLUS_INCLUDE_PATH"
  31. (string-append sdl2-include ":"
  32. (getenv "CPLUS_INCLUDE_PATH")))
  33. (invoke "make" "-C" "pyxel/core" "clean" "all")
  34. (substitute* "setup.py"
  35. (("pyxel.core.bin.macos") "")
  36. (("pyxel.core.bin.win32") "")
  37. (("pyxel.core.bin.win64") ""))))))))
  38. (inputs
  39. `(("gifsicle" ,gifsicle)
  40. ("sdl2" ,(sdl-union (list sdl2 sdl2-image)))))
  41. (home-page "https://github.com/kitao/pyxel")
  42. (synopsis "A retro game engine for Python")
  43. (description "Retro game engine with the following features:
  44. @enumerate
  45. @item Fixed 16 color palette
  46. @item 256x256 sized 3 image banks
  47. @item 256x256 sized 8 tilemaps
  48. @item 4 channels with 64 definable sounds
  49. @item 8 musics which can combine arbitrary sounds
  50. @item Image and sound editor
  51. @end enumerate")
  52. (license license:expat))
  53. `(("gcc-toolchain-10" ,gcc-toolchain-10))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement