nixpkgs/pkgs/games/maelstrom/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

41 lines
1.0 KiB
Nix

{ 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";
categories = [ "Game" ];
})
];
meta = with lib; {
description = "Arcade-style game resembling Asteroids";
mainProgram = "maelstrom";
license = licenses.gpl2Plus;
platforms = platforms.all;
maintainers = with maintainers; [ tmountain ];
};
}