about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/methane/default.nix
blob: 5ab8843b33bf14be1b11931e07e25d7d556fe445 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, SDL2
, SDL2_image
, SDL2_mixer
, fontconfig
, freealut
, freeglut
, gettext
, libGL
, libGLU
, openal
, quesoglc
, clanlib
, libXrender
, libmikmod
, alsa-lib
}:

stdenv.mkDerivation rec {
  pname = "methane";
  version = "2.0.1";

  src = fetchFromGitHub {
    repo = "methane";
    owner = "rombust";
    rev = "v${version}";
    sha256 = "sha256-STS2+wfZ8E1jpr0PYQOBQsztxhJU0Dt3IhWBE3sjdWE=";
  };

  nativeBuildInputs = [
    gettext
    pkg-config
  ];
  buildInputs = [
    SDL2
    SDL2_image
    SDL2_mixer
    fontconfig
    freealut
    freeglut
    libGL
    libGLU
    openal
    quesoglc
    clanlib
    libXrender
    libmikmod
    alsa-lib
  ];

  installPhase  = ''
    runHook preInstall
    mkdir -p $out/bin/ $out/share/methane/ $out/share/docs/
    cp methane $out/bin
    cp -r resources/* $out/share/methane/.
    cp -r docs/* $out/share/docs/.
    runHook postInstall
  '';

  meta = with lib; {
    homepage = "https://github.com/rombust/methane";
    description = "A clone of Taito's Bubble Bobble arcade game released for Amiga in 1993 by Apache Software";
    mainProgram = "methane";
    license = licenses.gpl2Only;
    maintainers = with maintainers; [ nixinator ];
    platforms = [ "x86_64-linux" ];
  };
}