From 150d671c69b170b26301fe70c0c7f05d392772ee Mon Sep 17 00:00:00 2001 From: Patrick Norton Date: Fri, 7 Nov 2025 07:51:05 -0500 Subject: [PATCH] gnu: Add black-hole-solver. * gnu/packages/games.scm (black-hole-solver): New variable. Change-Id: I74741e3afbae6e95e72f8bcae1cc56a80837d674 Signed-off-by: Liliana Marie Prikler --- gnu/packages/games.scm | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index 2c3ca40c97803d7b6290711a12c51faa13c074bb..8163373677f515bd5f30a8e2356e8945d8b565b9 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -218,6 +218,7 @@ #:use-module (gnu packages pulseaudio) #:use-module (gnu packages python) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-compression) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) @@ -2193,6 +2194,56 @@ kthieves, ktowers, xmille and xreversi.") ;; Code is under BSD-3 and Expat, card images are under CC0. (license (list license:bsd-3 license:expat license:cc0)))) +(define-public black-hole-solver + (package + (name "black-hole-solver") + (version "1.14.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://fc-solve.shlomifish.org/downloads/fc-solve/black-hole-solver-" + version ".tar.xz")) + (sha256 + (base32 "1h2panbi4jkcijyknyxi74fkgd0jgjmp1mhg155hy5mv7l4vsisw")))) + (build-system cmake-build-system) + (arguments + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'delete-failing-tests + (lambda _ + (delete-file "t/style-trailing-space.t")))))) + ;; TODO: These inputs wind up propagating both perl-moo and perl-moo-2, + ;; which are mutually incompatible + (native-inputs + (list `(,glib "bin") + perl + perl-class-xsaccessor + perl-dir-manifest + perl-env-path + perl-file-find-object + perl-file-find-object-rule + perl-file-which + perl-inline + perl-inline-c + perl-number-compare + perl-path-tiny-0.150 + perl-test-differences + perl-test-runvalgrind + perl-test-some + perl-test-trailingspace + perl-text-glob + pkg-config + python)) + (inputs (list rinutils)) + (home-page "https://fc-solve.shlomifish.org/") + (synopsis "Solver of various solitaire games") + (description + "Black-hole Solver is a program that automatically solves layouts of Black Hole and +similar variants of Card Solitaire such as Golf, and All in a Row.") + (license license:expat))) + (define-public knightsgame (package (name "knightsgame")