guix_mirror_bot pushed a commit to branch master
in repository guix.
commit a1579aa70451816c51c332c1ffcf65d7388b6a85
Author: Nguyễn Gia Phong <[email protected]>
AuthorDate: Tue Aug 25 23:17:59 2026 +0900
gnu: Add blend2d.
* gnu/packages/graphics.scm (blend2d): New variable.
Merges: https://codeberg.org/guix/guix/pulls/10847
---
gnu/packages/graphics.scm | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 7ef72d2105..0611661c00 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -45,6 +45,7 @@
;;; Copyright © 2026 Cayetano Santos <[email protected]>
;;; Copyright © 2026 Jan Wielkiewicz <[email protected]>
;;; Copyright © 2026 Sughosha <[email protected]>
+;;; Copyright © 2026 Nguyễn Gia Phong <[email protected]>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -2271,6 +2272,40 @@ It supports sub-pixel resolutions and anti-aliasing. It
is also a library for
rendering @acronym{SVG, Scalable Vector Graphics}.")
(license license:gpl2+)))
+(define-public blend2d
+ (let ((commit "6dbc2cefbc996379e07104e34519a440b49b15d7")
+ (revision "0"))
+ (package
+ (name "blend2d")
+ ;; blend2d/core/api.h defines BL_VERSION.
+ (version (git-version "0.21.2" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/blend2d/blend2d")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1mavcz5lqngwy0gm1iijd79h9q6siy2cn5k71n2v1432fi8si6fv"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags
+ #~'("-DBLEND2D_TEST=ON"
+ "-DBLEND2D_EXTERNAL_ASMJIT=ON")))
+ (inputs (list asmjit))
+ (home-page "https://blend2d.com")
+ (synopsis "2D vector graphics engine")
+ (description
+ "Blend2D is a high performance 2D vector graphics engine,
+which utilizes a built-in JIT compiler to generate optimized pipelines
+at runtime that take the advantage of host CPU features and is capable
+of using multiple threads. Blend2D can render rectangles, simple shapes,
+geometries composed of lines and Bézier curves, and text. The 2D pipeline
+supports pixel composition, opacity control, and styles such as solid colors,
+gradients, and images.")
+ (license license:zlib))))
+
(define-public facedetect
(let ((commit "5f9b9121001bce20f7d87537ff506fcc90df48ca")
(revision "0"))