{ lib, multiStdenv, pkgsi686Linux , writeShellScript , fetchFromGitHub, ed , hl2sdk, ambuild, metamod-source, libfinite , mysql_5_5 }: let inherit (pkgsi686Linux) zlib; owner = "alliedmodders"; buildno = "6968"; in multiStdenv.mkDerivation rec { pname = "sourcemod"; version = "1.11_${buildno}"; src = fetchFromGitHub rec { inherit owner; repo = pname; rev = "13510eab809a98b6a62354fc9848641"; fetchSubmodules = true; hash = "sha256-leV0Q7g5bnJljzQxv3z6t5p/1d9TxILPvIuSYuq8LmE="; }; nativeBuildInputs = [ ambuild ed ]; buildInputs = [ zlib mysql_5_5 ]; hardeningDisable = [ "all" ]; CXXFLAGS="-Wno-error=sign-compare -Wno-error=ignored-attributes"; postPatch = '' mkdir .git echo "ref: refs/heads/main" > .git/HEAD ed tools/buildbot/generate_headers.py <