nixpkgs/pkgs/development/ocaml-modules/inotify/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
765 B
Nix
Raw Normal View History

2022-12-29 05:18:40 +00:00
{ lib, fetchFromGitHub, buildDunePackage
, lwt # optional lwt support
, ounit2, fileutils # only for tests
}:
2022-12-29 05:18:40 +00:00
buildDunePackage rec {
version = "2.4.1";
pname = "inotify";
src = fetchFromGitHub {
owner = "whitequark";
repo = "ocaml-inotify";
rev = "v${version}";
2022-12-29 05:18:40 +00:00
hash = "sha256-2ATFF3HeATjhWgW4dG4jheQ9m1oE8xTQ7mpMT/1Jdp8=";
};
2022-12-29 05:18:40 +00:00
buildInputs = [ lwt ];
nativeCheckInputs = [ ounit2 fileutils ];
# Otherwise nativeCheckInputs can't be found
strictDeps = false;
doCheck = true;
meta = {
description = "Bindings for Linuxs filesystem monitoring interface, inotify";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.vbgl ];
inherit (src.meta) homepage;
platforms = lib.platforms.linux;
};
}