mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: godot: List which third party files to keep.
Remove everything else to catch added dependencies in new versions. * gnu/packages/game-development.scm (godot)[source](snippet): Instead of removing (only) the unbundled libs, remove everything except the listed files. Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
parent
c1bc92c0aa
commit
18f8e935e8
1 changed files with 33 additions and 18 deletions
|
@ -1515,27 +1515,42 @@ games.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"12305wj2i4067jc50l8r0wmb7zjcna24fli8vb8kiaild0jrlip6"))
|
"12305wj2i4067jc50l8r0wmb7zjcna24fli8vb8kiaild0jrlip6"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)
|
||||||
|
(ice-9 ftw)
|
||||||
|
(srfi srfi-1)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
;; Drop libraries that we take from Guix. Note that some
|
;; Keep only those bundled files we have not (yet) replaced
|
||||||
;; of these may be modified; see "thirdparty/README.md".
|
;; with Guix versions. Note that some of these may be
|
||||||
|
;; modified; see "thirdparty/README.md".
|
||||||
(with-directory-excursion "thirdparty"
|
(with-directory-excursion "thirdparty"
|
||||||
(for-each delete-file-recursively
|
(let* ((preserved-files
|
||||||
'("bullet"
|
'("README.md"
|
||||||
"freetype"
|
"b2d_convexdecomp"
|
||||||
"libogg"
|
"certs"
|
||||||
"libpng"
|
"cvtt"
|
||||||
"libtheora"
|
"enet"
|
||||||
"libvorbis"
|
"etc2comp"
|
||||||
"libvpx"
|
"fonts"
|
||||||
"libwebp"
|
"glad"
|
||||||
"mbedtls"
|
"jpeg-compressor"
|
||||||
"opus"
|
"libsimplewebm"
|
||||||
"pcre2"
|
"libwebsockets"
|
||||||
"zlib"
|
"miniupnpc"
|
||||||
"zstd"))
|
"minizip"
|
||||||
#t)))))
|
"misc"
|
||||||
|
"nanosvg"
|
||||||
|
"pvrtccompressor"
|
||||||
|
"recastnavigation"
|
||||||
|
"squish"
|
||||||
|
"thekla_atlas"
|
||||||
|
"tinyexr"
|
||||||
|
"xatlas")))
|
||||||
|
(for-each delete-file-recursively
|
||||||
|
(lset-difference string=?
|
||||||
|
(scandir ".")
|
||||||
|
(cons* "." ".." preserved-files)))))
|
||||||
|
#t))))
|
||||||
(build-system scons-build-system)
|
(build-system scons-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:scons ,scons-python2
|
`(#:scons ,scons-python2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue