2022-04-27 09:35:20 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, SDL_mixer, SDL, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ri_li";
|
|
|
|
version = "2.0.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-28 23:13:55 +00:00
|
|
|
url = "mirror://sourceforge/ri-li/Ri-li-${version}.tar.bz2";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "f71ccc20c37c601358d963e087ac0d524de8c68e96df09c3aac1ae65edd38dbd";
|
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
patches = [
|
|
|
|
./moderinze_cpp.patch
|
|
|
|
|
|
|
|
# Build fix for gcc-11 pending upstream inclusion:
|
|
|
|
# https://sourceforge.net/p/ri-li/bugs/2/
|
|
|
|
(fetchpatch {
|
|
|
|
name = "gcc-11.patch";
|
|
|
|
url = "https://sourceforge.net/p/ri-li/bugs/2/attachment/0001-Fix-build-on-gcc-11.patch";
|
|
|
|
sha256 = "01il9lm3amwp3b435ka9q63p0jwlzajwnbshyazx6n9vcnrr17yw";
|
|
|
|
})
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
CPPFLAGS = "-I${lib.getDev SDL}/include -I${lib.getDev SDL}/include/SDL -I${SDL_mixer}/include";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
buildInputs = [ SDL SDL_mixer ];
|
|
|
|
|
|
|
|
meta = {
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://ri-li.sourceforge.net";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Children's train game";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ri-li is an arcade game licensed under the GPL (General Public License).
|
|
|
|
You drive a toy wood engine in many levels and you must collect all the coaches
|
|
|
|
to win.
|
|
|
|
'';
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "Ri_li";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|