summary refs log tree commit diff
path: root/pkgs/games/animatch/default.nix
blob: b6bf5473807c8756066ec20e922e9d4d8a54b855 (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
{ lib
, allegro5
, cmake
, fetchFromGitLab
, libGL
, stdenv
, xorg
}:
stdenv.mkDerivation rec {
  pname = "animatch";
  version = "1.0.3";
  src = fetchFromGitLab {
    owner = "HolyPangolin";
    repo = "animatch";
    fetchSubmodules = true;
    rev = "v${version}";
    hash = "sha256-zBV45WMAXtCpPPbDpr04K/a9UtZ4KLP9nUauBlbhrFo=";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    allegro5
    libGL
    xorg.libX11
  ];

  cmakeFlags = [
    "-DLIBSUPERDERPY_STATIC=ON"  # recommended by upstream for coexistence with other superderpy games
  ];

  meta = {
    homepage = "https://gitlab.com/HolyPangolin/animatch/";
    description = "A cute match three game for the Librem 5 smartphone";
    license = with lib.licenses; [ gpl3Plus ];
    maintainers = with lib.maintainers; [ colinsane ];
  };
}