From 1f27739bf62cd9eca6092bf0fea0e43f61bbdd51 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sat, 1 Feb 2025 11:02:30 +0100 Subject: gnu: Add li-ri. * gnu/packages/games.scm (li-ri): New variable. Change-Id: Ic95b6e10dc1974e329d6b747658b275ed2e27c9a --- gnu/packages/games.scm | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/games.scm b/gnu/packages/games.scm index c0319dcb20..5a27193e57 100644 --- a/gnu/packages/games.scm +++ b/gnu/packages/games.scm @@ -30,7 +30,7 @@ ;;; Copyright © 2017, 2019, 2020 Marius Bakke ;;; Copyright © 2017, 2018 Rutger Helling ;;; Copyright © 2017 Roel Janssen -;;; Copyright © 2017-2024 Nicolas Goaziou +;;; Copyright © 2017-2025 Nicolas Goaziou ;;; Copyright © 2018 okapi ;;; Copyright © 2018 Tim Gesthuizen ;;; Copyright © 2018 Madalin Ionel-Patrascu @@ -10716,6 +10716,36 @@ (define-public gnurobots may be written in a plain text file in the Scheme programming language.") (license license:gpl3+))) +(define-public li-ri + (package + (name "li-ri") + (version "3.1.5") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/petitlapin/Li-Ri") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1fd5hl9qhgvyix51la8sl34jzk4mcin8sai05gidy2r2grb1dy4s")))) + (build-system cmake-build-system) + (arguments + (list #:tests? #false ;no tests + #:configure-flags + #~(list "-DUSE_SYSTEM_SIMPLEINI=ON" + (string-append "-DLIRI_DATA_DIR=" #$output "/share/Li-ri/")))) + (native-inputs (list pkg-config)) + (inputs (list sdl2 sdl2-mixer simpleini)) + (home-page "https://github.com/petitlapin/Li-Ri") + (synopsis "Toy train simulation game") + (description + "Li-Ri is a game in which you drive a wooden toy steam locomotive +across many levels and collect all the coaches to win.") + ;; Source files mention "either version 2 or version 3" for GPL + ;; license. Desktop file is licensed under CC0 terms. + (license (list license:gpl2 license:gpl3 license:cc0)))) + (define-public ri-li (package (name "ri-li") -- cgit v1.2.3