Subject: [bug#57390] [PATCH 3/3] gnu: Add harmonist-sdl.

From: Cairn <[email-masked]>
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 <[email-masked]>
 ;;; Copyright © 2022 Gabriel Arazas <[email-masked]>
 ;;; Copyright © 2022 Maxim Cournoyer <[email-masked]>
+;;; Copyright © 2022 Cairn <[email-masked]>
 ;;;
 ;;; 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