GNU bug report logs - #57390
[PATCH 0/3] gnu: Add harmonist-sdl.

Previous Next

Package: guix-patches;

Reported by: Cairn <cairn <at> pm.me>

Date: Wed, 24 Aug 2022 18:03:01 UTC

Severity: normal

Tags: patch

To reply to this bug, email your comments to 57390 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#57390; Package guix-patches. (Wed, 24 Aug 2022 18:03:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Cairn <cairn <at> pm.me>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 24 Aug 2022 18:03:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: guix-patches <at> gnu.org
Cc: Cairn <cairn <at> pm.me>
Subject: [PATCH 0/3] gnu: Add harmonist-sdl.
Date: Wed, 24 Aug 2022 18:01:37 +0000
This is the SDL2 version of Harmonist.

https://github.com/anaseto/harmonist#sdl2-tiles-or-ascii

It's just an inheritence of the `harmonist` package, but I'm hoping the difference between the two packages is obvious enough not to require its own description. I didn't find a lot of inherited packages which change the original description, so I'm following their example.

Cairn (3):
  gnu: Add go-github-com-veandco-go-sdl2.
  gnu: Add go-github-com-anaseto-gruid-sdl.
  gnu: Add harmonist-sdl.

 gnu/packages/games.scm  | 43 +++++++++++++++++++++++++++++++++++++++++
 gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)

-- 
2.37.2






Information forwarded to guix-patches <at> gnu.org:
bug#57390; Package guix-patches. (Wed, 24 Aug 2022 18:06:03 GMT) Full text and rfc822 format available.

Message #8 received at 57390 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: 57390 <at> debbugs.gnu.org
Cc: Cairn <cairn <at> pm.me>
Subject: [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2.
Date: Wed, 24 Aug 2022 18:05:06 +0000
* gnu/packages/golang.scm (go-github-com-veandco-go-sdl2): New variable.
---
 gnu/packages/golang.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm
index d2f3dc39df..b295b826e9 100644
--- a/gnu/packages/golang.scm
+++ b/gnu/packages/golang.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2021 Lu Hui <luhux76 <at> gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin <at> gmail.com>
 ;;; Copyright © 2022 muradm <mail <at> muradm.net>
+;;; Copyright © 2022 Cairn <cairn <at> pm.me>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -83,6 +84,7 @@ (define-module (gnu packages golang)
   #:use-module (gnu packages textutils)
   #:use-module (gnu packages tls)
   #:use-module (gnu packages web)
+  #:use-module (gnu packages sdl)
   #:use-module (ice-9 match)
   #:use-module (srfi srfi-1))
 
@@ -9914,3 +9916,33 @@ (define-public go-github-com-sourcegraph-jsonrpc2
     (description
      "Package jsonrpc2 provides a Go implementation of JSON-RPC 2.0.")
     (license license:expat)))
+
+(define-public go-github-com-veandco-go-sdl2
+  (package
+    (name "go-github-com-veandco-go-sdl2")
+    (version "0.4.25")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/veandco/go-sdl2")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1jvk0bpbq7dbza03a5j9yisij65si59zqzn2x9km2xjdjzbdzpyy"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:tests? #f
+       #:import-path "github.com/veandco/go-sdl2/sdl"
+       #:unpack-path "github.com/veandco/go-sdl2"))
+    (native-inputs (list pkg-config))
+    (propagated-inputs (list sdl2
+                             sdl2-image
+                             sdl2-mixer
+                             sdl2-ttf
+                             sdl2-gfx))
+    (home-page "https://github.com/veandco/go-sdl2")
+    (synopsis "Go bindings for the SDL2 library")
+    (description "Go-SDL2 is SDL2 wrapped for Go users.  It enables
+interoperability between Go and the SDL2 library.")
+    (license license:bsd-3)))
-- 
2.37.2






Information forwarded to guix-patches <at> gnu.org:
bug#57390; Package guix-patches. (Wed, 24 Aug 2022 18:07:02 GMT) Full text and rfc822 format available.

Message #11 received at 57390 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: 57390 <at> debbugs.gnu.org
Cc: Cairn <cairn <at> pm.me>
Subject: [PATCH 2/3] gnu: Add go-github-com-anaseto-gruid-sdl.
Date: Wed, 24 Aug 2022 18:06:19 +0000
* gnu/packages/games.scm (go-github-com-anaseto-gruid-sdl): New variable.
---
 gnu/packages/games.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index a3278b8918..7f5d59cce1 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -9474,6 +9474,32 @@ (define-public go-github-com-anaseto-gruid-tcell
 terminal full-window applications.")
     (license license:isc)))
 
+(define-public go-github-com-anaseto-gruid-sdl
+  (package
+    (name "go-github-com-anaseto-gruid-sdl")
+    (version "0.4.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/anaseto/gruid-sdl")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "14g26kskkkp509bnql5brbainxxvp59qb59b5s7qqgv9hxgx201m"))))
+    (build-system go-build-system)
+    (arguments
+     '(#:import-path "github.com/anaseto/gruid-sdl"))
+    (native-inputs (list pkg-config))
+    (inputs (list go-github-com-anaseto-gruid
+                  go-golang-org-x-image))
+    (propagated-inputs (list go-github-com-veandco-go-sdl2))
+    (home-page "https://github.com/anaseto/gruid-sdl")
+    (synopsis "Gruid driver for using the SDL2 library")
+    (description "The gruid-sdl2 module provides a Gruid driver for
+building native graphical applications with SDL2.")
+    (license license:isc)))
+
 (define-public harmonist
   (package
     (name "harmonist")
-- 
2.37.2






Information forwarded to guix-patches <at> gnu.org:
bug#57390; Package guix-patches. (Wed, 24 Aug 2022 18:08:01 GMT) Full text and rfc822 format available.

Message #14 received at 57390 <at> debbugs.gnu.org (full text, mbox):

From: Cairn <cairn <at> pm.me>
To: 57390 <at> debbugs.gnu.org
Cc: Cairn <cairn <at> pm.me>
Subject: [PATCH 3/3] gnu: Add harmonist-sdl.
Date: Wed, 24 Aug 2022 18:06:51 +0000
* gnu/packages/games.scm (harmonist-sdl): New variable.
---
 gnu/packages/games.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm
index 7f5d59cce1..6e8e695c02 100644
--- a/gnu/packages/games.scm
+++ b/gnu/packages/games.scm
@@ -73,6 +73,7 @@
 ;;; Copyright © 2022 zamfofex <zamfofex <at> twdb.moe>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared <at> gmail.com>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
+;;; Copyright © 2022 Cairn <cairn <at> pm.me>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -9531,6 +9532,22 @@ (define-public harmonist
 on items and player adaptability for character progression.")
     (license license:isc)))
 
+(define-public harmonist-sdl
+  (package
+   (inherit harmonist)
+   (name "harmonist-sdl")
+   (native-inputs
+    (modify-inputs (package-native-inputs harmonist)
+      (append pkg-config)))
+   (inputs
+    (modify-inputs (package-inputs harmonist)
+      (append go-github-com-anaseto-gruid-sdl)))
+   (arguments
+    (substitute-keyword-arguments (package-arguments harmonist)
+      ((#:build-flags flags ''())
+       `(append '("--tags" "sdl")
+                ,flags))))))
+
 (define-public drascula
   (package
     (name "drascula")
-- 
2.37.2






This bug report was last modified 1 year and 238 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.