all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Tai <atai@atai.org>
To: 70471@debbugs.gnu.org
Cc: Andy Tai <atai@atai.org>
Subject: [bug#70471] [PATCH] gnu: bx: New variable.
Date: Fri, 19 Apr 2024 02:14:56 -0700	[thread overview]
Message-ID: <8122f04004dbd1ad197642942533c6a28ed6815b.1713518043.git.atai@atai.org> (raw)

* gnu/packages/graphics.scm: Add bx.

Change-Id: Idb60e1e73d7c35a9d42cc634eab642abcc991001
---
 gnu/packages/graphics.scm | 57 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 57 insertions(+)

diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 3571a45b84..661df61be6 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -2884,6 +2884,63 @@ (define-public f3d
 options.")
     (license license:bsd-3)))
 
+(define-public bx
+  (let ((commit "d3434707384f6d62229a4476b10b6dc22fee7c9a")
+        (revision "1"))
+    (package
+      (name "bx")
+      (version (git-version "0.0.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/bkaradzic/bx")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "11jii8dfb0nzxamkffa6ij3p6r4w7csfbxw7wpxsmqhirv5i8rns"))))
+      (build-system gnu-build-system)
+      (arguments
+       (list
+        #:phases #~(modify-phases %standard-phases
+                     (delete 'configure)
+
+                     (replace 'build
+                       (lambda _
+                         (invoke "make" "linux-release64"
+                                 (string-append "GENIE="
+                                                #$(this-package-native-input
+                                                   "genie") "/bin/genie") "-j"
+                                 (number->string (parallel-job-count)))))
+
+                     (replace 'check
+                       (lambda _
+                         (invoke "make" "test")))
+                     (replace 'install
+                       (lambda _
+                         (install-file
+                          ".build/linux64_gcc/obj/x64/Release/bin2c/tools/bin2c"
+                          (string-append #$output "/bin"))
+                         (install-file
+                          ".build/linux64_gcc/obj/x64/Release/lemon/tools/lemon"
+                          (string-append #$output "/bin"))
+                         (for-each (lambda (f)
+                                     (install-file f
+                                                   (string-append #$output
+                                                                  "/lib")))
+                                   (find-files ".build/linux64_gcc" "\\.a$"))
+                         (copy-recursively "include/bx"
+                                           (string-append #$output
+                                                          "/include/bx")))))))
+      (native-inputs (list genie))
+      (home-page "https://github.com/bkaradzic/bx")
+      (synopsis "Base library used across multiple projects ")
+      (description
+       "Bx is an base library that implements low level functions of the
+Bgfx graphics library.")
+      (license license:bsd-2))))
+
+
 (define-public gpaint
   (package
     (name "gpaint")

base-commit: e0d920b7db3f71c02627d698676339218e03ad63
-- 
2.34.1





                 reply	other threads:[~2024-04-19  9:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8122f04004dbd1ad197642942533c6a28ed6815b.1713518043.git.atai@atai.org \
    --to=atai@atai.org \
    --cc=70471@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.