aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/games/solarus/default.nix
blob: c204846ae2fcbc5a96b9343571a295c1cfb0f458 (plain)
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
{ lib, mkDerivation, fetchFromGitLab, cmake, luajit
,  SDL2, SDL2_image, SDL2_ttf, physfs, glm
, openal, libmodplug, libvorbis
, qtbase, qttools }:

mkDerivation rec {
  pname = "solarus";
  version = "1.6.4";

  src = fetchFromGitLab {
    owner = "solarus-games";
    repo = pname;
    rev = "v${version}";
    sha256 = "sbdlf+R9OskDQ5U5rqUX2gF8l/fj0sDJv6BL7H1I1Ng=";
  };

  outputs = [ "out" "lib" "dev" ];

  nativeBuildInputs = [ cmake qttools ];
  buildInputs = [ luajit SDL2
    SDL2_image SDL2_ttf physfs
    openal libmodplug libvorbis
    qtbase glm ];

  enableParallelBuilding = true;

  preFixup = ''
    mkdir $lib/
    mv $out/lib $lib
  '';

  meta = with lib; {
    description = "A Zelda-like ARPG game engine";
    longDescription = ''
      Solarus is a game engine for Zelda-like ARPG games written in lua.
      Many full-fledged games have been writen for the engine.
    '';
    homepage = "http://www.solarus-games.org";
    license = licenses.gpl3;
    maintainers = [ maintainers.Nate-Devv ];
    platforms = platforms.linux;
  };

}