2023-01-11 07:51:40 +00:00
|
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
|
|
|
|
, lwt # optional lwt support
|
|
|
|
|
, ounit2, fileutils # only for tests
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
|
buildDunePackage rec {
|
2024-01-02 11:29:13 +00:00
|
|
|
|
version = "2.5";
|
2023-01-11 07:51:40 +00:00
|
|
|
|
pname = "inotify";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "whitequark";
|
|
|
|
|
repo = "ocaml-inotify";
|
|
|
|
|
rev = "v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
hash = "sha256-3Ju6l6aF5eJgIZJKO0lQGXjjGDzCdX2fuwyNSAjIyAs=";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
|
buildInputs = [ lwt ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
|
checkInputs = [ ounit2 fileutils ];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
|
description = "Bindings for Linux’s filesystem monitoring interface, inotify";
|
|
|
|
|
license = lib.licenses.lgpl21;
|
|
|
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}
|