python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / frogatto / engine.nix
blobb848c414b7a3c362b34fea52c763ef0e51f0b78a
1 { lib, stdenv, fetchFromGitHub, fetchurl, which
2 , boost, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf
3 , glew, zlib, icu, pkg-config, cairo, libvpx }:
5 stdenv.mkDerivation {
6   pname = "anura-engine";
7   version = "unstable-2022-04-09";
9   src = fetchFromGitHub {
10     owner = "anura-engine";
11     repo = "anura";
12     rev = "5ac7f6fe63114274f0da7dad4c1ed673651e6424";
13     sha256 = "1yrcbvzgxdvn893qk1qcpb53pjns366fdls5qjal7lhq71kkfc67";
14     fetchSubmodules = true;
15   };
16   patches = [
17     # https://github.com/anura-engine/anura/issues/321
18     (fetchurl {
19       url = "https://github.com/anura-engine/anura/commit/627d08fb5254b5c66d315f1706089905c2704059.patch";
20       sha256 = "052m58qb3lg0hnxacpnjz2sz89dk0x6b5qi2q9bkzkvg38f237rr";
21     })
22   ];
24   nativeBuildInputs = [
25     which pkg-config
26   ];
28   buildInputs = [
29     boost
30     SDL2
31     SDL2_image
32     SDL2_mixer
33     SDL2_ttf
34     glew
35     zlib
36     icu
37     cairo
38     libvpx
39   ];
41   enableParallelBuilding = true;
43   installPhase = ''
44     mkdir -p $out/bin $out/share/frogatto
45     cp -ar data images modules $out/share/frogatto/
46     cp -a anura $out/bin/frogatto
47   '';
49   meta = with lib; {
50     homepage = "https://github.com/anura-engine/anura";
51     description = "Game engine used by Frogatto";
52     license = licenses.zlib;
53     platforms = platforms.linux;
54     maintainers = with maintainers; [ astro ];
55   };