Subject: bug#38548: closed (Re: [bug#38548] [PATCH] gnu: Add love-nuklear.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 19 Dec 2019 22:12:02 +0000

Your bug report

#38548: [PATCH] gnu: Add love-nuklear.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
38548: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38548
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#38548] [PATCH] gnu: Add love-nuklear.
From: Ludovic Courtès <[email-masked]>
To: Jethro Cao <[email-masked]>
Cc: [email-masked]
Date: Thu, 19 Dec 2019 23:11:48 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Jethro Cao <[email-masked]> skribis:

> * gnu/packages/game-development.scm (love-nuklear): New variable.

Applied, thanks!

Ludo’.

Subject: [PATCH] gnu: Add love-nuklear.
From: Jethro Cao <[email-masked]>
To: [email-masked]
Cc: Jethro Cao <[email-masked]>
Date: Mon, 9 Dec 2019 16:32:59 +0700
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/game-development.scm (love-nuklear): New variable.
---
 gnu/packages/game-development.scm | 32 +++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-development.scm
index 833f00b77c..f47e580c27 100644
--- a/gnu/packages/game-development.scm
+++ b/gnu/packages/game-development.scm
@@ -653,6 +653,38 @@ programming language.")
     (home-page "https://love2d.org/")
     (license license:zlib)))
 
+(define-public love-nuklear
+ (let ((version "v2.6")
+       (commit "fef4e00a602efb16c57ae962850b6e7a01f7a29a"))
+  (package
+   (name "love-nuklear")
+   (version (git-version version "+4commits" commit))
+   (source (origin
+            (method git-fetch)
+            (uri (git-reference
+                  (url "https://github.com/keharriso/love-nuklear/")
+                  (commit commit)
+                  (recursive? #t) 
+                  ;; NOTE: the Nuklear submodule's HEAD is at commit "adc52d7" of Oct 1 2019
+                  ;; TODO: package Nuklear, and explicitly specify it as a native (build) input
+                  ))
+            (file-name (git-file-name name version))
+            (sha256 
+             (base32 
+              "15qmy8mfwkxy2x9rmxs6f9cyvjvwwj6yf78bs863xmc56dmjzzbn"))))
+   (build-system cmake-build-system)
+   (arguments
+    `(#:build-type "Release"
+      #:tests? #f))
+   (inputs
+    `(("luajit" ,luajit)))
+   (synopsis "Lightweight immediate mode GUI for LÖVE games")
+   (description "LÖVE is a Lua framework for making 2D games. Nuklear
+is a minimal state immediate mode graphical user interface toolkit. This
+package is the Nuklear bindings for LÖVE created by Kevin Harrison.")
+   (home-page "https://github.com/keharriso/love-nuklear/")
+   (license license:expat))))
+
 (define-public allegro-4
   (package
     (name "allegro")
-- 
2.20.1