tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
mle: 1.5.0 -> 1.7.2
Adam Saponara
2 years ago
6fdb2bef
30fd9eea
+4
-23
1 changed file
expand all
collapse all
unified
split
pkgs
applications
editors
mle
default.nix
+4
-23
pkgs/applications/editors/mle/default.nix
···
1
1
{ lib
2
2
, stdenv
3
3
, fetchFromGitHub
4
4
-
, fetchpatch
5
5
-
, pcre
4
4
+
, pcre2
6
5
, uthash
7
6
, lua5_4
8
7
, makeWrapper
···
11
10
12
11
stdenv.mkDerivation rec {
13
12
pname = "mle";
14
14
-
version = "1.5.0";
13
13
+
version = "1.7.2";
15
14
16
15
src = fetchFromGitHub {
17
16
owner = "adsr";
18
17
repo = "mle";
19
18
rev = "v${version}";
20
20
-
sha256 = "1nhd00lsx9v12zdmps92magz76c2d8zzln3lxvzl4ng73gbvq3n0";
19
19
+
sha256 = "0rkk7mh6w5y1lrbdv7wmxdgl5cqzpzw0p26adazkqlfdyb6wbj9k";
21
20
};
22
21
23
23
-
# Bug fixes found after v1.5.0 release
24
24
-
patches = [
25
25
-
(fetchpatch {
26
26
-
name = "skip_locale_dep_test.patch";
27
27
-
url = "https://github.com/adsr/mle/commit/e4dc4314b02a324701d9ae9873461d34cce041e5.patch";
28
28
-
sha256 = "sha256-j3Z/n+2LqB9vEkWzvRVSOrF6yE+hk6f0dvEsTQ74erw=";
29
29
-
})
30
30
-
(fetchpatch {
31
31
-
name = "fix_input_trail.patch";
32
32
-
url = "https://github.com/adsr/mle/commit/bc05ec0eee4143d824010c6688fce526550ed508.patch";
33
33
-
sha256 = "sha256-dM63EBDQfHLAqGZk3C5NtNAv23nCTxXVW8XpLkAeEyQ=";
34
34
-
})
35
35
-
];
36
36
-
37
22
# Fix location of Lua 5.4 header and library
38
23
postPatch = ''
39
24
substituteInPlace Makefile --replace "-llua5.4" "-llua";
···
41
26
patchShebangs tests/*
42
27
'';
43
28
44
44
-
# Use select(2) instead of poll(2) (poll is returning POLLINVAL on macOS)
45
45
-
# Enable compiler optimization
46
46
-
CFLAGS = "-DTB_OPT_SELECT -O2";
47
47
-
48
29
nativeBuildInputs = [ makeWrapper installShellFiles ];
49
30
50
50
-
buildInputs = [ pcre uthash lua5_4 ];
31
31
+
buildInputs = [ pcre2 uthash lua5_4 ];
51
32
52
33
doCheck = true;
53
34