with import {}; stdenv.mkDerivation rec { version = "3.5.1"; name = "ldmud-${version}"; NIX_DEBUG = true; src = fetchFromGitHub { repo = "ldmud"; owner = "ldmud"; rev = "${version}"; sha256 = "176nz3b4i602bz04iy9dni77laisvbw9bs1xwsy1rk4s67jg6i4d"; }; nativeBuildInputs = [ pkgconfig bison libgcrypt mysql55 sqlite json_c pcre python36 libxml2 libressl ]; preConfigure = '' cd src ./autogen.sh ''; buildInputs = [ libgcrypt mysql55 sqlite json_c pcre python36 libxml2 libressl ]; installTargets = "install-all"; configureFlags = [ "--enable-compat-mode" "--enable-erq=xerq" "--with-erq-debug=0" "--with-read-file-max-size=300000" "--with-master-name=obj/master" "--with-max-array-size=0" "--with-max-mapping-size=0" "--with-max-mapping-keys=0" "--with-max-players=100" "--with-max-cost=5000000" "--with-hard-malloc-limit=0" "--enable-use-mysql=${mysql55}/include/mysql" "--enable-use-sqlite" "--enable-use-mccp" "--enable-use-json" "--enable-use-pcre" "--enable-use-python" "--enable-use-xml" "--enable-use-tls" "--enable-eval-cost-trace" "--with-portno=2777" "--with-evaluator-stack-size=20000" "--with-max-trace=270" "--with-max-user-trace=260" ]; # Enable the line below for build to succeed # hardeningDisable = [ "format" ]; }