diff mbox series

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

Message ID 20220824180646.29263-1-cairn@pm.me
State New
Headers show
Series gnu: Add harmonist-sdl. | expand

Checks

Context Check Description
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch fail
cbaines/issue success View issue
cbaines/comparison success View comparision
cbaines/git-branch success View Git branch
cbaines/applying patch success View Laminar job
cbaines/issue success View issue

Commit Message

Cairn Aug. 24, 2022, 6:06 p.m. UTC
* gnu/packages/games.scm (harmonist-sdl): New variable.
---
 gnu/packages/games.scm | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
diff mbox series

Patch

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")