{ fetchFromGitHub, buildSMPlugin }: buildSMPlugin rec { pname = "smlib"; version = "2022-01-11"; src = fetchFromGitHub { owner = "bcserv"; repo = pname; # transitional_syntax branch rev = "2c14acb85314e25007f5a61789833b243e7d0cab"; hash = "sha256-yonYBCaEZGjbxhKvQ2NNVBpiUqyMxuchEgL+bsWomuo="; }; postPatch = '' sed -i \ '/#include /a #include ' \ scripting/include/smlib/entities.inc ''; # technically unnecessary as buildPhase simply won't find anything to build dontBuild = true; }