all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#57390] [PATCH 0/3] gnu: Add harmonist-sdl.
@ 2022-08-24 18:01 Cairn via Guix-patches via
  2022-08-24 18:05 ` [bug#57390] [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2 Cairn via Guix-patches via
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Cairn via Guix-patches via @ 2022-08-24 18:01 UTC (permalink / raw)
  To: 57390; +Cc: Cairn

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






^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#57390] [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2.
  2022-08-24 18:01 [bug#57390] [PATCH 0/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
@ 2022-08-24 18:05 ` Cairn via Guix-patches via
  2022-08-24 18:06 ` [bug#57390] [PATCH 2/3] gnu: Add go-github-com-anaseto-gruid-sdl Cairn via Guix-patches via
  2022-08-24 18:06 ` [bug#57390] [PATCH 3/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
  2 siblings, 0 replies; 4+ messages in thread
From: Cairn via Guix-patches via @ 2022-08-24 18:05 UTC (permalink / raw)
  To: 57390; +Cc: Cairn

* 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@gmail.com>
 ;;; Copyright © 2022 Pier-Hugues Pellerin <phpellerin@gmail.com>
 ;;; Copyright © 2022 muradm <mail@muradm.net>
+;;; Copyright © 2022 Cairn <cairn@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






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#57390] [PATCH 2/3] gnu: Add go-github-com-anaseto-gruid-sdl.
  2022-08-24 18:01 [bug#57390] [PATCH 0/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
  2022-08-24 18:05 ` [bug#57390] [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2 Cairn via Guix-patches via
@ 2022-08-24 18:06 ` Cairn via Guix-patches via
  2022-08-24 18:06 ` [bug#57390] [PATCH 3/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
  2 siblings, 0 replies; 4+ messages in thread
From: Cairn via Guix-patches via @ 2022-08-24 18:06 UTC (permalink / raw)
  To: 57390; +Cc: Cairn

* 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






^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#57390] [PATCH 3/3] gnu: Add harmonist-sdl.
  2022-08-24 18:01 [bug#57390] [PATCH 0/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
  2022-08-24 18:05 ` [bug#57390] [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2 Cairn via Guix-patches via
  2022-08-24 18:06 ` [bug#57390] [PATCH 2/3] gnu: Add go-github-com-anaseto-gruid-sdl Cairn via Guix-patches via
@ 2022-08-24 18:06 ` Cairn via Guix-patches via
  2 siblings, 0 replies; 4+ messages in thread
From: Cairn via Guix-patches via @ 2022-08-24 18:06 UTC (permalink / raw)
  To: 57390; +Cc: Cairn

* 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@twdb.moe>
 ;;; Copyright © 2022 Gabriel Arazas <foo.dogsquared@gmail.com>
 ;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022 Cairn <cairn@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






^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-24 18:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-24 18:01 [bug#57390] [PATCH 0/3] gnu: Add harmonist-sdl Cairn via Guix-patches via
2022-08-24 18:05 ` [bug#57390] [PATCH 1/3] gnu: Add go-github-com-veandco-go-sdl2 Cairn via Guix-patches via
2022-08-24 18:06 ` [bug#57390] [PATCH 2/3] gnu: Add go-github-com-anaseto-gruid-sdl Cairn via Guix-patches via
2022-08-24 18:06 ` [bug#57390] [PATCH 3/3] gnu: Add harmonist-sdl Cairn via Guix-patches via

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.