nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchurl
4, libX11
5, libXpm
6}:
7
8stdenv.mkDerivation rec {
9 pname = "xgalaga++";
10 version = "0.9";
11 src = fetchurl {
12 url = "https://marc.mongenet.ch/OSS/XGalaga/xgalaga++_${version}.tar.gz";
13 sha256 = "sha256-yNtLuYCMHLvQAVM7CDGPardrh3q27TE9l31qhUbMf8k=";
14 };
15
16 buildInputs = [
17 libX11
18 libXpm
19 ];
20
21 buildPhase = ''
22 make all HIGH_SCORES_FILE=.xgalaga++.scores
23 '';
24
25 installPhase = ''
26 mkdir -p $out/bin $out/share/man
27 mv xgalaga++ $out/bin
28 mv xgalaga++.6x $out/share/man
29 '';
30
31 meta = with lib; {
32 homepage = "https://marc.mongenet.ch/OSS/XGalaga/";
33 description = "XGalaga++ is a classic single screen vertical shoot ’em up. It is inspired by XGalaga and reuses most of its sprites.";
34 license = licenses.gpl2Plus;
35 platforms = platforms.linux;
36 };
37}