16 stdenv.mkDerivation (finalAttrs: {
17 pname = "supermariowar";
18 version = "2023-unstable-2024-09-21";
20 src = fetchFromGitHub {
22 repo = "supermariowar";
23 rev = "7e7ebe39cadba5d0bd9d7e87a08264332c2f1f12";
24 hash = "sha256-kBwaqw0GZvLWE5GqgfieLRU4s8wYFtTZyl1MgwWGbMc=";
25 fetchSubmodules = true;
42 cmakeFlags = [ "-DBUILD_STATIC_LIBS=OFF" ];
47 for app in smw smw-leveledit smw-worldedit; do
48 chmod +x $out/games/$app
50 cat << EOF > $out/bin/$app
51 $out/games/$app --datadir $out/share/games/smw
53 chmod +x $out/bin/$app
56 ln -s $out/games/smw-server $out/bin/smw-server
58 passthru.updateScript = unstableGitUpdater { };
60 description = "A fan-made multiplayer Super Mario Bros. style deathmatch game";
61 homepage = "https://github.com/mmatyas/supermariowar";
62 changelog = "https://github.com/mmatyas/supermariowar/blob/${finalAttrs.src.rev}/CHANGELOG";
63 license = lib.licenses.gpl2Plus;
64 maintainers = with lib.maintainers; [ theobori ];
66 platforms = lib.platforms.linux;