29 stdenv.mkDerivation rec {
33 src = fetchFromGitHub {
37 fetchSubmodules = true;
38 hash = "sha256-Op5cnp/gO3PPv/QyrashFDBCyqwlO6wkv5Ni5jpRWd8=";
67 "-DENABLE_LUA:BOOL=ON"
68 "-DENABLE_ERM:BOOL=ON"
69 "-DENABLE_GOLDMASTER:BOOL=ON"
70 "-DENABLE_PCH:BOOL=OFF"
71 "-DENABLE_TEST:BOOL=OFF" # Tests require HOMM3 data files.
72 "-DFORCE_BUNDLED_MINIZIP:BOOL=OFF"
73 "-DFORCE_BUNDLED_FL:BOOL=OFF"
74 "-DCMAKE_INSTALL_RPATH:STRING=$out/lib/vcmi"
75 "-DCMAKE_INSTALL_BINDIR:STRING=bin"
76 "-DCMAKE_INSTALL_LIBDIR:STRING=lib"
77 "-DCMAKE_INSTALL_DATAROOTDIR:STRING=share"
81 wrapProgram $out/bin/vcmibuilder \
82 --prefix PATH : "${lib.makeBinPath [ innoextract ffmpeg unshield ]}"
85 passthru.tests.version = testers.testVersion {
88 XDG_DATA_HOME="$TMPDIR" XDG_CACHE_HOME="$TMPDIR" XDG_CONFIG_HOME="$TMPDIR" \
94 description = "Open-source engine for Heroes of Might and Magic III";
95 homepage = "https://vcmi.eu";
96 changelog = "https://github.com/vcmi/vcmi/blob/${src.rev}/ChangeLog.md";
97 license = with licenses; [ gpl2Plus cc-by-sa-40 ];
98 maintainers = with maintainers; [ azahi ];
99 platforms = platforms.linux;
100 mainProgram = "vcmilauncher";