2022-01-03 16:56:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, SDL
|
2022-06-16 17:23:12 +00:00
|
|
|
, qt4
|
2022-01-03 16:56:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tworld2";
|
|
|
|
version = "2.2.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://tw2.bitbusters.club/downloads/tworld-${version}-src.tar.gz";
|
2022-06-16 17:23:12 +00:00
|
|
|
hash = "sha256-USy2F4es0W3xT4aI254OQ02asJKNt3V0Y72LCbXYpfg=";
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildInputs = [ SDL qt4 ];
|
|
|
|
|
2022-01-03 16:56:52 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postConfigure = ''
|
|
|
|
echo "#define COMPILE_TIME \"$(date -ud "@$SOURCE_DATE_EPOCH" '+%Y %b %e %T %Z')\"" >comptime.h
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"bindir=${placeholder "out"}/bin"
|
|
|
|
"sharedir=${placeholder "out"}/share"
|
|
|
|
"mandir=${placeholder "out"}/share/man/en"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/doc/${pname}
|
|
|
|
cp COPYING README docs/tworld2.html $out/share/doc/${pname}
|
|
|
|
|
|
|
|
mkdir $out/share/icons
|
|
|
|
cp tworld.ico tworld2.ico $out/share/icons
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://tw2.bitbusters.club/";
|
2022-06-16 17:23:12 +00:00
|
|
|
description = "Tile World 2: Tile World is a reimplementation of the game Chip's Challenge";
|
2022-01-03 16:56:52 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ drperceptron ];
|
2022-06-16 17:23:12 +00:00
|
|
|
platforms = platforms.linux;
|
2022-01-03 16:56:52 +00:00
|
|
|
};
|
|
|
|
}
|