Skip to content

Commit 3e32138

Browse files
authored
libinotify-kqueue: 20180201 -> 20240724 (#387512)
2 parents 69d4d07 + ca13ff0 commit 3e32138

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

pkgs/by-name/li/libinotify-kqueue/package.nix

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,42 @@
22
lib,
33
stdenv,
44
fetchFromGitHub,
5+
fetchpatch,
56
autoreconfHook,
67
}:
78

89
stdenv.mkDerivation rec {
910
pname = "libinotify-kqueue";
10-
version = "20180201";
11+
version = "20240724";
1112

1213
src = fetchFromGitHub {
1314
owner = "libinotify-kqueue";
1415
repo = "libinotify-kqueue";
1516
rev = version;
16-
sha256 = "sha256-9A5s8rPGlRv3KbxOukk0VB2IQrDxVjklO5RB+IA1cDY=";
17+
sha256 = "sha256-m59GWrx5C+JXDbhVdKx+SNSn8wwIKyW+KlXabNi17A0=";
1718
};
1819

20+
patches = [
21+
# https://github.com/libinotify-kqueue/libinotify-kqueue/pull/23
22+
(fetchpatch {
23+
name = "add-configure-caching.patch";
24+
url = "https://github.com/libinotify-kqueue/libinotify-kqueue/commit/81a8f05c1ce6df819dc898f3754c9c874ee24b10.patch";
25+
hash = "sha256-imKS2DuQrHSMnJH1gOYrVSeWTe2nhcl8Gm9IX5B9ZqI=";
26+
})
27+
];
28+
1929
nativeBuildInputs = [ autoreconfHook ];
2030

21-
doCheck = true;
31+
configureFlags =
32+
lib.optionals (with stdenv; buildPlatform != hostPlatform && hostPlatform.isFreeBSD)
33+
[
34+
"ik_cv_have_note_extend_in=yes"
35+
"ik_cv_have_note_extend_out=yes"
36+
"ik_cv_have_o_path=yes"
37+
"ik_cv_have_o_empty_path=yes"
38+
"ik_cv_have_at_empty_path=yes"
39+
];
40+
2241
checkFlags = [ "test" ];
2342

2443
meta = with lib; {

0 commit comments

Comments
 (0)