{ lib, multiStdenv , fetchFromGitHub, ed , hl2sdk, ambuild, libfinite }: let owner = "alliedmodders"; buildno = "1155"; in multiStdenv.mkDerivation rec { pname = "metamod-source"; version = "1.11_${buildno}"; src = fetchFromGitHub rec { inherit owner; repo = pname; rev = "2009298c32735b6de1712ff88e2309c"; fetchSubmodules = true; hash = "sha256-cPrllC3IljtV9SWn2NZbV8yHvehqLNGkZQ0RK07yCz4="; }; nativeBuildInputs = [ ambuild ed ]; hardeningDisable = [ "all" ]; CXXFLAGS="-Wno-error=class-memaccess -Wno-error=format-truncation"; postPatch = '' mkdir .git echo "ref: refs/heads/main" > .git/HEAD ed support/buildbot/generate_headers.py <