Skip to content
Snippets Groups Projects
Commit 9ff7827a authored by Taylan Ulrich Bayırlı/Kammer's avatar Taylan Ulrich Bayırlı/Kammer
Browse files

gnu: nestopia-ue: Use system zlib.

* gnu/packages/games.scm (nestopia-ue): Remove bundled zlib, patch files
  to include system zlib.h, and add zlib as input.
parent c869eed1
No related branches found
No related tags found
No related merge requests found
...@@ -1228,9 +1228,14 @@ (define-public nestopia-ue ...@@ -1228,9 +1228,14 @@ (define-public nestopia-ue
(base32 (base32
"07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p")) "07h49xwvg61dx20rk5p4r3ax2ar5y0ppvm60cqwqljyi9rdfbh7p"))
(modules '((guix build utils))) (modules '((guix build utils)))
;; We don't need libretro for the GNU/Linux build.
(snippet (snippet
'(delete-file-recursively "libretro")))) '(begin
;; We don't need libretro for the GNU/Linux build.
(delete-file-recursively "libretro")
;; Use system zlib.
(delete-file-recursively "source/zlib")
(substitute* "source/core/NstZlib.cpp"
(("#include \"../zlib/zlib.h\"") "#include <zlib.h>"))))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (native-inputs
`(("pkg-config" ,pkg-config))) `(("pkg-config" ,pkg-config)))
...@@ -1240,7 +1245,8 @@ (define-public nestopia-ue ...@@ -1240,7 +1245,8 @@ (define-public nestopia-ue
("gtk+" ,gtk+) ("gtk+" ,gtk+)
("libarchive" ,libarchive) ("libarchive" ,libarchive)
("mesa" ,mesa) ("mesa" ,mesa)
("sdl2" ,sdl2))) ("sdl2" ,sdl2)
("zlib" ,zlib)))
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment