14 stdenv.mkDerivation rec {
18 src = fetchFromGitHub {
22 sha256 = "sha256-bFHygaL0UrrprSZRPTdYIzO78IhMjiqhLCGr7TTajqc=";
26 patchShebangs src/proto/nanopb/generator/*
30 "-DCDOGS_DATA_DIR=${placeholder "out"}/"
31 "-DCMAKE_C_FLAGS=-Wno-error=array-bounds"
34 env.NIX_CFLAGS_COMPILE = toString [
36 "-Wno-error=stringop-overflow"
42 (python3.withPackages (pp: with pp; [ pp.protobuf setuptools ]))
53 # inlining failed in call to 'tinydir_open': --param max-inline-insns-single limit reached
54 hardeningDisable = [ "fortify3" ];
57 homepage = "https://cxong.github.io/cdogs-sdl";
58 description = "Open source classic overhead run-and-gun game";
59 license = licenses.gpl2Only;
60 maintainers = with maintainers; [ nixinator ];
61 platforms = platforms.unix;
62 broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/cdogs-sdl.x86_64-darwin