nixpkgs/pkgs/games/airstrike/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

38 lines
870 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, SDL, SDL_image }:
stdenv.mkDerivation rec {
pname = "airstrike-pre";
version = "6a";
src = fetchurl {
url = "https://icculus.org/airstrike/airstrike-pre${version}-src.tar.gz";
sha256 = "1h6rv2zcp84ycmd0kv1pbpqjgwx57dw42x7878d2c2vnpi5jn8qi";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ SDL SDL_image ];
NIX_LDFLAGS = "-lm";
installPhase = ''
ls -l
mkdir -p $out/bin
cp airstrike $out/bin
mkdir -p $out/share
cp -r data airstrikerc $out/share
wrapProgram $out/bin/airstrike \
--chdir "$out/share"
'';
meta = with lib; {
description = "2d dogfighting game";
mainProgram = "airstrike";
homepage = "https://icculus.org/airstrike/";
license = licenses.gpl2;
maintainers = with maintainers; [ pSub ];
platforms = platforms.linux;
};
}