From c5edc1d38aaa960a04ad2c675af102debde12462 Mon Sep 17 00:00:00 2001 From: Adam Saponara Date: Sun, 29 May 2022 13:00:49 -0400 Subject: [PATCH] mle: 1.4.3 -> 1.5.0 --- pkgs/applications/editors/mle/default.nix | 48 +++++++++++++++++------ 1 file changed, 35 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/editors/mle/default.nix b/pkgs/applications/editors/mle/default.nix index 506f94237ff8..e6744ac8a82e 100644 --- a/pkgs/applications/editors/mle/default.nix +++ b/pkgs/applications/editors/mle/default.nix @@ -1,26 +1,53 @@ -{ lib, stdenv, fetchFromGitHub, termbox, pcre, uthash, lua5_3, makeWrapper, installShellFiles }: +{ lib +, stdenv +, fetchFromGitHub +, fetchpatch +, pcre +, uthash +, lua5_4 +, makeWrapper +, installShellFiles +}: stdenv.mkDerivation rec { pname = "mle"; - version = "1.4.3"; + version = "1.5.0"; src = fetchFromGitHub { owner = "adsr"; repo = "mle"; rev = "v${version}"; - sha256 = "16dbwfdd6sqqn7jfaxd5wdy8y9ghbihnz6bgn3xhqcww8rj1sia1"; + sha256 = "1nhd00lsx9v12zdmps92magz76c2d8zzln3lxvzl4ng73gbvq3n0"; }; - # Fix location of Lua 5.3 header and library + # Bug fixes found after v1.5.0 release + patches = [ + (fetchpatch { + name = "skip_locale_dep_test.patch"; + url = "https://github.com/adsr/mle/commit/e4dc4314b02a324701d9ae9873461d34cce041e5.patch"; + sha256 = "sha256-j3Z/n+2LqB9vEkWzvRVSOrF6yE+hk6f0dvEsTQ74erw="; + }) + (fetchpatch { + name = "fix_input_trail.patch"; + url = "https://github.com/adsr/mle/commit/bc05ec0eee4143d824010c6688fce526550ed508.patch"; + sha256 = "sha256-dM63EBDQfHLAqGZk3C5NtNAv23nCTxXVW8XpLkAeEyQ="; + }) + ]; + + # Fix location of Lua 5.4 header and library postPatch = '' - substituteInPlace Makefile --replace "-llua5.3" "-llua"; - substituteInPlace mle.h --replace "