summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2022-12-29 06:18:40 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2023-01-05 07:01:20 +0100
commit333feefeae8ecb703180c650f8071efb21cfd7ec (patch)
tree3b3466b6a312ae25be1790e300cc910012e739c7
parentocamlPackages.ocamlnet: disable for OCaml ≥ 5.0 (diff)
downloadnixpkgs-333feefeae8ecb703180c650f8071efb21cfd7ec.tar.gz
ocamlPackages.inotify: 2.3 → 2.4.1
(cherry picked from commit d9fe7a69dbfcfb012cb9e05193f7c55f4653fd67)
-rw-r--r--pkgs/development/ocaml-modules/inotify/default.nix34
1 files changed, 9 insertions, 25 deletions
diff --git a/pkgs/development/ocaml-modules/inotify/default.nix b/pkgs/development/ocaml-modules/inotify/default.nix
index d1c6dc376164..85afd3345740 100644
--- a/pkgs/development/ocaml-modules/inotify/default.nix
+++ b/pkgs/development/ocaml-modules/inotify/default.nix
@@ -1,42 +1,26 @@
-{ stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild
-, ocaml_lwt # optional lwt support
-, ounit, fileutils # only for tests
+{ lib, fetchFromGitHub, buildDunePackage
+, lwt # optional lwt support
+, ounit2, fileutils # only for tests
}:
-stdenv.mkDerivation rec {
- version = "2.3";
- pname = "ocaml${ocaml.version}-inotify";
+buildDunePackage rec {
+ version = "2.4.1";
+ pname = "inotify";
src = fetchFromGitHub {
owner = "whitequark";
repo = "ocaml-inotify";
rev = "v${version}";
- sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
+ hash = "sha256-2ATFF3HeATjhWgW4dG4jheQ9m1oE8xTQ7mpMT/1Jdp8=";
};
- patches = [ (fetchpatch {
- url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
- sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
- }) ];
-
- nativeBuildInputs = [ ocaml findlib ocamlbuild ];
- buildInputs = [ ocaml_lwt ];
- checkInputs = [ ounit fileutils ];
+ buildInputs = [ lwt ];
+ checkInputs = [ ounit2 fileutils ];
# Otherwise checkInputs can't be found
strictDeps = false;
- configureFlags = [ "--enable-lwt"
- (lib.optionalString doCheck "--enable-tests") ];
-
- postConfigure = lib.optionalString doCheck ''
- echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
- '';
-
doCheck = true;
- checkTarget = "test";
-
- createFindlibDestdir = true;
meta = {
description = "Bindings for Linux’s filesystem monitoring interface, inotify";