2020-11-05 16:35:29 +00:00
|
|
|
{ lib, mkDerivation, fetchFromGitLab, cmake, luajit
|
|
|
|
, SDL2, SDL2_image, SDL2_ttf, physfs, glm
|
|
|
|
, openal, libmodplug, libvorbis
|
|
|
|
, qtbase, qttools }:
|
2016-07-06 01:33:51 +00:00
|
|
|
|
2019-08-21 23:19:24 +00:00
|
|
|
mkDerivation rec {
|
2019-08-21 23:16:21 +00:00
|
|
|
pname = "solarus";
|
2020-11-05 16:35:29 +00:00
|
|
|
version = "1.6.4";
|
2017-11-27 16:13:56 +00:00
|
|
|
|
2018-09-05 02:03:56 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "solarus-games";
|
2019-08-21 23:16:21 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-11-05 16:35:29 +00:00
|
|
|
sha256 = "sbdlf+R9OskDQ5U5rqUX2gF8l/fj0sDJv6BL7H1I1Ng=";
|
2016-07-06 01:33:51 +00:00
|
|
|
};
|
2017-11-27 16:13:56 +00:00
|
|
|
|
2020-11-05 16:35:29 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake qttools ];
|
|
|
|
buildInputs = [ luajit SDL2
|
2016-07-06 01:33:51 +00:00
|
|
|
SDL2_image SDL2_ttf physfs
|
2018-09-05 02:03:56 +00:00
|
|
|
openal libmodplug libvorbis
|
2020-11-05 16:35:29 +00:00
|
|
|
qtbase glm ];
|
2016-07-06 01:33:51 +00:00
|
|
|
|
2024-05-01 00:25:28 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
(lib.cmakeFeature "CMAKE_CXX_FLAGS" "-DGLM_ENABLE_EXPERIMENTAL")
|
|
|
|
];
|
|
|
|
|
2020-11-05 16:35:29 +00:00
|
|
|
preFixup = ''
|
|
|
|
mkdir $lib/
|
|
|
|
mv $out/lib $lib
|
|
|
|
'';
|
|
|
|
|
2019-08-21 23:19:24 +00:00
|
|
|
meta = with lib; {
|
2016-07-06 01:33:51 +00:00
|
|
|
description = "Zelda-like ARPG game engine";
|
|
|
|
longDescription = ''
|
|
|
|
Solarus is a game engine for Zelda-like ARPG games written in lua.
|
|
|
|
Many full-fledged games have been writen for the engine.
|
|
|
|
'';
|
2023-02-19 20:43:38 +00:00
|
|
|
homepage = "https://www.solarus-games.org";
|
2016-07-06 01:33:51 +00:00
|
|
|
license = licenses.gpl3;
|
2022-06-22 23:06:48 +00:00
|
|
|
maintainers = [ ];
|
2016-07-06 01:33:51 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2017-11-27 16:13:56 +00:00
|
|
|
|
2016-07-06 01:33:51 +00:00
|
|
|
}
|