python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / games / cdogs-sdl / default.nix
blob3a7f4ff63ebadc92e5fd1a732bfafb4329e503ff
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , pkg-config
5 , SDL2
6 , SDL2_image
7 , SDL2_mixer
8 , cmake
9 , gtk3-x11
10 , python3
11 , protobuf
14 stdenv.mkDerivation rec {
15   pname = "cdogs";
16   version = "1.3.1";
18   src = fetchFromGitHub {
19     repo = "cdogs-sdl";
20     owner = "cxong";
21     rev = version;
22     sha256 = "sha256-fKqipk1kiPC6HrkNzxHK2aYe5WDZ3hEbPCwsqK5uQ2s=";
23   };
25   postPatch = ''
26     patchShebangs src/proto/nanopb/generator/*
27   '';
29   cmakeFlags = [
30     "-DCDOGS_DATA_DIR=${placeholder "out"}/"
31     "-DCMAKE_C_FLAGS=-Wno-error=array-bounds"
32   ];
34   nativeBuildInputs = [
35     pkg-config
36     cmake
37     (python3.withPackages (pp: with pp; [ pp.protobuf setuptools ]))
38   ];
40   buildInputs = [
41     SDL2
42     SDL2_image
43     SDL2_mixer
44     gtk3-x11
45     protobuf
46   ];
48   meta = with lib; {
49     homepage = "https://cxong.github.io/cdogs-sdl";
50     description = "Open source classic overhead run-and-gun game";
51     license = licenses.gpl2Only;
52     maintainers = with maintainers; [ nixinator ];
53     platforms = platforms.unix;
54     broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/cdogs-sdl.x86_64-darwin
55   };