2022-12-29 05:18:40 +00:00
|
|
|
|
{ lib, fetchFromGitHub, buildDunePackage
|
|
|
|
|
, lwt # optional lwt support
|
|
|
|
|
, ounit2, fileutils # only for tests
|
2017-07-02 13:03:48 +00:00
|
|
|
|
}:
|
|
|
|
|
|
2022-12-29 05:18:40 +00:00
|
|
|
|
buildDunePackage rec {
|
|
|
|
|
version = "2.4.1";
|
|
|
|
|
pname = "inotify";
|
2021-01-21 00:24:35 +00:00
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "whitequark";
|
|
|
|
|
repo = "ocaml-inotify";
|
|
|
|
|
rev = "v${version}";
|
2022-12-29 05:18:40 +00:00
|
|
|
|
hash = "sha256-2ATFF3HeATjhWgW4dG4jheQ9m1oE8xTQ7mpMT/1Jdp8=";
|
2021-01-21 00:24:35 +00:00
|
|
|
|
};
|
|
|
|
|
|
2022-12-29 05:18:40 +00:00
|
|
|
|
buildInputs = [ lwt ];
|
2023-01-21 12:00:00 +00:00
|
|
|
|
nativeCheckInputs = [ ounit2 fileutils ];
|
2021-01-21 00:24:35 +00:00
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
|
# Otherwise nativeCheckInputs can't be found
|
2022-02-22 09:59:04 +00:00
|
|
|
|
strictDeps = false;
|
|
|
|
|
|
2021-01-21 00:24:35 +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;
|
|
|
|
|
};
|
2017-07-02 13:03:48 +00:00
|
|
|
|
}
|