Merge pull request #125654 from karolchmist/init-fheroes2-0.9.4

fheroes2: init at 0.9.4
This commit is contained in:
Sandro 2021-06-05 20:45:29 +02:00 committed by GitHub
commit 929c876f65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 47 additions and 0 deletions

@ -0,0 +1,45 @@
{ stdenv, lib, fetchFromGitHub
, gettext, libpng, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, zlib
}:
stdenv.mkDerivation rec {
pname = "fheroes2";
version = "0.9.4";
src = fetchFromGitHub {
owner = "ihhub";
repo = "fheroes2";
rev = version;
sha256 = "sha256-z+88tVsf4uyMFzNfZDKXo0cYqBCYn1ehX+A+e+aIfSg=";
};
buildInputs = [ gettext libpng SDL2 SDL2_image SDL2_mixer SDL2_ttf zlib ];
makeFlags = [
"FHEROES2_STRICT_COMPILATION=1"
"RELEASE=1"
];
enableParallelBuilding = true;
installPhase = ''
runHook preInstall
install -Dm755 $PWD/src/dist/fheroes2 $out/bin/fheroes2
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/ihhub/fheroes2";
description = "Free implementation of Heroes of Might and Magic II game engine";
longDescription = ''
In order to play this game, an original game data is required.
Please refer to README of the project for instructions.
On linux, the data can be placed in ~/.local/share/fheroes2 folder.
'';
license = licenses.gpl2Plus;
maintainers = [ maintainers.karolchmist ];
platforms = platforms.linux;
};
}

@ -28345,6 +28345,8 @@ in
fava = callPackage ../applications/office/fava {};
fheroes2 = callPackage ../games/fheroes2 {};
fish-fillets-ng = callPackage ../games/fish-fillets-ng {};
flightgear = libsForQt5.callPackage ../games/flightgear { };