{ lib , stdenv , fetchFromGitHub , pcre2 , uthash , lua5_4 , makeWrapper , installShellFiles }: stdenv.mkDerivation rec { pname = "mle"; version = "1.7.2"; src = fetchFromGitHub { owner = "adsr"; repo = "mle"; rev = "v${version}"; sha256 = "0rkk7mh6w5y1lrbdv7wmxdgl5cqzpzw0p26adazkqlfdyb6wbj9k"; }; # Fix location of Lua 5.4 header and library postPatch = '' substituteInPlace Makefile --replace "-llua5.4" "-llua"; substituteInPlace mle.h --replace "