diff options
Diffstat (limited to 'pkgs/games/cdogs-sdl/default.nix')
-rw-r--r-- | pkgs/games/cdogs-sdl/default.nix | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/pkgs/games/cdogs-sdl/default.nix b/pkgs/games/cdogs-sdl/default.nix deleted file mode 100644 index 492a4216df41..000000000000 --- a/pkgs/games/cdogs-sdl/default.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ lib -, stdenv -, fetchFromGitHub -, pkg-config -, SDL2 -, SDL2_image -, SDL2_mixer -, cmake -, gtk3-x11 -, python3 -, protobuf -}: - -stdenv.mkDerivation rec { - pname = "cdogs-sdl"; - version = "2.1.0"; - - src = fetchFromGitHub { - repo = pname; - owner = "cxong"; - rev = version; - sha256 = "sha256-bFHygaL0UrrprSZRPTdYIzO78IhMjiqhLCGr7TTajqc="; - }; - - postPatch = '' - patchShebangs src/proto/nanopb/generator/* - ''; - - cmakeFlags = [ - "-DCDOGS_DATA_DIR=${placeholder "out"}/" - "-DCMAKE_C_FLAGS=-Wno-error=array-bounds" - ]; - - env.NIX_CFLAGS_COMPILE = toString [ - # Needed with GCC 12 - "-Wno-error=stringop-overflow" - ]; - - nativeBuildInputs = [ - pkg-config - cmake - (python3.withPackages (pp: with pp; [ pp.protobuf setuptools ])) - ]; - - buildInputs = [ - SDL2 - SDL2_image - SDL2_mixer - gtk3-x11 - protobuf - ]; - - # inlining failed in call to 'tinydir_open': --param max-inline-insns-single limit reached - hardeningDisable = [ "fortify3" ]; - - meta = with lib; { - homepage = "https://cxong.github.io/cdogs-sdl"; - description = "Open source classic overhead run-and-gun game"; - license = licenses.gpl2Only; - maintainers = with maintainers; [ nixinator ]; - platforms = platforms.unix; - broken = stdenv.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/cdogs-sdl.x86_64-darwin - }; -} |