summaryrefslogtreecommitdiff
path: root/guix/build/minetest-build-system.scm
diff options
context:
space:
mode:
authorMaxime Devos <maximedevos@telenet.be>2021-10-01 16:21:07 +0200
committerMathieu Othacehe <othacehe@gnu.org>2021-10-02 11:00:02 +0000
commit8a55fde935cc9bcf2c098cc7bff05c32d80da174 (patch)
treecfa4a9d5fc41bc1f206f57eaee83a6d18b5b2fa0 /guix/build/minetest-build-system.scm
parent9bf0652b08e269ae23f6e82b68fabafffc850863 (diff)
build/minetest-build-system: Move png-file? to (guix build utils).
It's not really Minetest-specific. It was only placed in (guix build minetest-build-system) to avoid a world rebuild. * guix/build/minetest-build-system.scm (%png-magic-bytes,png-file?): Move to ... * guix/build/utils.scm (%png-magic-bytes,png-file?): ... here. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
Diffstat (limited to 'guix/build/minetest-build-system.scm')
-rw-r--r--guix/build/minetest-build-system.scm9
1 files changed, 0 insertions, 9 deletions
diff --git a/guix/build/minetest-build-system.scm b/guix/build/minetest-build-system.scm
index 477cc3d1d0..5d7d8d2292 100644
--- a/guix/build/minetest-build-system.scm
+++ b/guix/build/minetest-build-system.scm
@@ -90,15 +90,6 @@ If it is unknown, make an educated guess."
#:install-plan (mod-install-plan (apply guess-mod-name arguments))
arguments))
-(define %png-magic-bytes
- ;; Magic bytes of PNG images, see ‘5.2 PNG signatures’ in
- ;; ‘Portable Network Graphics (PNG) Specification (Second Edition)’
- ;; on <https://www.w3.org/TR/PNG/>.
- #vu8(137 80 78 71 13 10 26 10))
-
-(define png-file?
- ((@@ (guix build utils) file-header-match) %png-magic-bytes))
-
(define* (minimise-png #:key inputs native-inputs #:allow-other-keys)
"Minimise PNG images found in the working directory."
(define optipng (which "optipng"))