nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, mkDerivation, fetchFromGitLab, cmake, luajit
2, SDL2, SDL2_image, SDL2_ttf, physfs, glm
3, openal, libmodplug, libvorbis
4, qtbase, qttools }:
5
6mkDerivation rec {
7 pname = "solarus";
8 version = "1.6.4";
9
10 src = fetchFromGitLab {
11 owner = "solarus-games";
12 repo = pname;
13 rev = "v${version}";
14 sha256 = "sbdlf+R9OskDQ5U5rqUX2gF8l/fj0sDJv6BL7H1I1Ng=";
15 };
16
17 outputs = [ "out" "lib" "dev" ];
18
19 nativeBuildInputs = [ cmake qttools ];
20 buildInputs = [ luajit SDL2
21 SDL2_image SDL2_ttf physfs
22 openal libmodplug libvorbis
23 qtbase glm ];
24
25 preFixup = ''
26 mkdir $lib/
27 mv $out/lib $lib
28 '';
29
30 meta = with lib; {
31 description = "A Zelda-like ARPG game engine";
32 longDescription = ''
33 Solarus is a game engine for Zelda-like ARPG games written in lua.
34 Many full-fledged games have been writen for the engine.
35 '';
36 homepage = "https://www.solarus-games.org";
37 license = licenses.gpl3;
38 maintainers = [ ];
39 platforms = platforms.linux;
40 };
41
42}