about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/xgalaga++/default.nix
blob: 9b2bd5a9af736f6bf7d42c73db9bcb5e94bc2d43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, stdenv
, fetchurl
, libX11
, libXpm
}:

stdenv.mkDerivation rec {
  pname = "xgalaga++";
  version = "0.9";
  src = fetchurl {
    url    = "https://marc.mongenet.ch/OSS/XGalaga/xgalaga++_${version}.tar.gz";
    sha256 = "sha256-yNtLuYCMHLvQAVM7CDGPardrh3q27TE9l31qhUbMf8k=";
  };

  buildInputs = [
    libX11
    libXpm
  ];

  buildPhase = ''
    make all HIGH_SCORES_FILE=.xgalaga++.scores
  '';

  installPhase = ''
    mkdir -p $out/bin $out/share/man
    mv xgalaga++ $out/bin
    mv xgalaga++.6x $out/share/man
  '';

  meta = with lib; {
    homepage = "https://marc.mongenet.ch/OSS/XGalaga/";
    description = "XGalaga++ is a classic single screen vertical shoot ’em up. It is inspired by XGalaga and reuses most of its sprites";
    mainProgram = "xgalaga++";
    license = licenses.gpl2Plus;
    platforms = platforms.linux;
  };
}