about summary refs log tree commit diff
path: root/pkgs/games/openxcom/default.nix
blob: 3ae8e23605dafea0ad1ce73a60247610a654fb5a (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
{ boost
, cmake
, fetchFromGitHub
, lib
, libGLU
, libGL
, openssl
, pkg-config
, SDL
, SDL_image
, SDL_mixer
, SDL_gfx
, stdenv
, yaml-cpp
, zlib
}:

stdenv.mkDerivation {
  pname = "openxcom";
  version = "1.0.0.2023.08.12";

  src = fetchFromGitHub {
    owner = "OpenXcom";
    repo = "OpenXcom";
    rev = "bd632cc8569a57fdc3b68ce53f6ea850422ec5ac";
    hash = "sha256-ouYZ4rAEluqeP+ZUrbEZwCpXCw0cZLWsf1GbIE3jaTc=";
  };

  nativeBuildInputs = [
    cmake
    pkg-config
  ];

  buildInputs = [
    boost
    libGL
    libGLU
    SDL
    SDL_gfx
    SDL_image
    SDL_mixer
    yaml-cpp
    openssl
    zlib
  ];

  meta = {
    description = "Open source clone of UFO: Enemy Unknown";
    mainProgram = "openxcom";
    homepage = "https://openxcom.org";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [ cpages ];
    platforms = lib.platforms.linux;
  };
}