summary refs log tree commit diff
path: root/pkgs/development/tools/solarus-quest-editor/default.nix
blob: 5a340d30949568f4409fadea25cc82222167ebb1 (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
{ stdenv, fetchFromGitLab, cmake, luajit,
  SDL2, SDL2_image, SDL2_ttf, physfs,
  openal, libmodplug, libvorbis, solarus,
  qtbase, qttools, fetchpatch }:

stdenv.mkDerivation rec {
  name = "solarus-quest-editor-${version}";
  version = "1.5.3";
    
  src = fetchFromGitLab {
    owner = "solarus-games";
    repo = "solarus-quest-editor";
    rev = "v1.5.3";
    sha256 = "1b9mg04yy4pnrl745hbc82rz79k0f8ci3wv7gvsm3a998q8m98si";
  };
  
  buildInputs = [ cmake luajit SDL2
    SDL2_image SDL2_ttf physfs
    openal libmodplug libvorbis
    solarus qtbase qttools ];
    
  patches = [
    ./patches/fix-install.patch

    # Next two patches should be fine to remove for next release.
    # This commit fixes issues AND adds features *sighs*
    ./patches/partial-f285beab62594f73e57190c49848c848487214cf.patch

    (fetchpatch {
      url = https://gitlab.com/solarus-games/solarus-quest-editor/commit/8f308463030c18cd4f7c8a6052028fff3b7ca35a.patch;
      sha256 = "1jq48ghhznrp47q9lq2rhh48a1z4aylyy4qaniaqyfyq3vihrchr";
    })
  ];

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