2021-03-12 07:09:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, makeDesktopItem, SDL2, SDL2_net }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "maelstrom";
|
|
|
|
version = "3.0.7";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.libsdl.org/projects/Maelstrom/src/Maelstrom-${version}.tar.gz";
|
|
|
|
sha256 = "0dm0m5wd7amrsa8wnrblkv34sq4v4lglc2wfx8klfkdhyhi06s4k";
|
|
|
|
};
|
|
|
|
|
|
|
|
# this fixes a typedef compilation error with gcc-3.x
|
|
|
|
patches = [ ./fix-compilation.patch ];
|
|
|
|
|
|
|
|
buildInputs = [ SDL2 SDL2_net ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s $out/games/Maelstrom/Maelstrom $out/bin/maelstrom
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
|
|
|
name = "maelstrom";
|
|
|
|
exec = "maelstrom";
|
|
|
|
desktopName = "Maelstrom";
|
|
|
|
genericName = "Maelstrom";
|
|
|
|
comment = "An arcade-style game resembling Asteroids";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "Game" ];
|
2021-03-12 07:09:13 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Arcade-style game resembling Asteroids";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "maelstrom";
|
2021-03-12 07:09:13 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ tmountain ];
|
|
|
|
};
|
|
|
|
}
|