2019-03-18 18:51:00 +00:00
|
|
|
{ stdenv, fetchFromGitLab, SDL2, SDL2_image, pkgconfig
|
2018-03-27 20:15:24 +01:00
|
|
|
, libvorbis, libGL, boost, cmake, zlib, curl, SDL2_mixer, python3
|
|
|
|
}:
|
2016-07-13 18:24:18 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "commandergenius";
|
2019-04-30 14:44:27 +01:00
|
|
|
version = "2.3.3";
|
2016-07-13 18:24:18 +01:00
|
|
|
|
2019-03-18 18:51:00 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "Dringgstein";
|
2016-07-13 18:24:18 +01:00
|
|
|
repo = "Commander-Genius";
|
|
|
|
rev = "v${version}";
|
2019-04-30 14:44:27 +01:00
|
|
|
sha256 = "04nb23wwvc3yywz3cr6gvn02fa7psfs22ssg4wk12s08z1azvz3h";
|
2016-07-13 18:24:18 +01:00
|
|
|
};
|
|
|
|
|
2018-03-27 20:15:24 +01:00
|
|
|
buildInputs = [ SDL2 SDL2_image SDL2_mixer libGL boost libvorbis zlib curl python3 ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export cmakeFlags="$cmakeFlags -DCMAKE_INSTALL_PREFIX=$out -DSHAREDIR=$out/share"
|
|
|
|
export makeFlags="$makeFlags DESTDIR=$(out)"
|
|
|
|
'';
|
2016-07-13 18:24:18 +01:00
|
|
|
|
2016-08-22 06:39:42 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
2016-07-13 18:24:18 +01:00
|
|
|
|
2016-08-22 06:39:42 +01:00
|
|
|
postPatch = ''
|
|
|
|
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(sdl2-config --cflags)"
|
|
|
|
sed -i 's,APPDIR games,APPDIR bin,' src/install.cmake
|
2016-07-13 18:24:18 +01:00
|
|
|
'';
|
|
|
|
|
2016-08-22 06:39:42 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-07-13 18:24:18 +01:00
|
|
|
description = "Modern Interpreter for the Commander Keen Games";
|
2017-12-05 22:20:11 +00:00
|
|
|
longDescription = ''
|
2016-07-13 18:24:18 +01:00
|
|
|
Commander Genius is an open-source clone of
|
|
|
|
Commander Keen which allows you to play
|
|
|
|
the games, and some of the mods
|
|
|
|
made for it. All of the original data files
|
|
|
|
are required to do so
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/gerstrong/Commander-Genius";
|
2016-08-22 06:39:42 +01:00
|
|
|
maintainers = with maintainers; [ hce ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2016-07-13 18:24:18 +01:00
|
|
|
};
|
|
|
|
}
|