Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 60940d7dde0e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cef53ab37109
Choose a head ref
  • 3 commits
  • 3 files changed
  • 1 contributor

Commits on Jul 5, 2020

  1. Verified

    This commit was signed with the committer’s verified signature.
    vcunat Vladimír Čunát
    Copy the full SHA
    0270bea View commit details
  2. Copy the full SHA
    a028138 View commit details
  3. ocamlPackages.lwt: 4.5.0 → 5.3.0

    ocamlPackages.lwt_ppx: 1.2.4 → 2.0.1
    vbgl committed Jul 5, 2020
    Copy the full SHA
    cef53ab View commit details
Showing with 18 additions and 10 deletions.
  1. +13 −5 pkgs/development/ocaml-modules/inotify/default.nix
  2. +2 −2 pkgs/development/ocaml-modules/lwt/default.nix
  3. +3 −3 pkgs/development/ocaml-modules/lwt/ppx.nix
18 changes: 13 additions & 5 deletions pkgs/development/ocaml-modules/inotify/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild
{ stdenv, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild
, ocaml_lwt # optional lwt support
, doCheck ? stdenv.lib.versionAtLeast ocaml.version "4.03"
, ounit, fileutils # only for tests
}:

@@ -15,13 +14,22 @@ stdenv.mkDerivation rec {
sha256 = "1s6vmqpx19hxzsi30jvp3h7p56rqnxfhfddpcls4nz8sqca1cz5y";
};

buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ]
++ stdenv.lib.optionals doCheck [ ounit fileutils ];
patches = [ (fetchpatch {
url = "https://github.com/whitequark/ocaml-inotify/commit/716c8002cc1652f58eb0c400ae92e04003cba8c9.patch";
sha256 = "04lfxrrsmk2mc704kaln8jqx93jc4bkxhijmfy2d4cmk1cim7r6k";
}) ];

buildInputs = [ ocaml findlib ocamlbuild ocaml_lwt ];
checkInputs = [ ounit fileutils ];

configureFlags = [ "--enable-lwt"
(stdenv.lib.optionalString doCheck "--enable-tests") ];

inherit doCheck;
postConfigure = stdenv.lib.optionalString doCheck ''
echo '<lib_test/test_inotify_lwt.*>: pkg_threads' | tee -a _tags
'';

doCheck = true;
checkTarget = "test";

createFindlibDestdir = true;
4 changes: 2 additions & 2 deletions pkgs/development/ocaml-modules/lwt/default.nix
Original file line number Diff line number Diff line change
@@ -7,11 +7,11 @@ let inherit (lib) optional versionAtLeast; in

buildDunePackage rec {
pname = "lwt";
version = "4.5.0";
version = "5.3.0";

src = fetchzip {
url = "https://github.com/ocsigen/${pname}/archive/${version}.tar.gz";
sha256 = "0l836z5zr38969bi77aga7ismj4wb01i3ffxf5v59jsgd3g44r2w";
sha256 = "15hgy3220m2b8imipa514n7l65m1h5lc6l1hanqwwvs7ghh2aqp2";
};

nativeBuildInputs = [ pkgconfig ];
6 changes: 3 additions & 3 deletions pkgs/development/ocaml-modules/lwt/ppx.nix
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

buildDunePackage {
pname = "lwt_ppx";
version = "1.2.4";
version = "2.0.1";

src = fetchzip {
# `lwt_ppx` has a different release cycle than Lwt, but it's included in
@@ -12,8 +12,8 @@ buildDunePackage {
#
# This is particularly useful for overriding Lwt without breaking `lwt_ppx`,
# as new Lwt releases may contain broken `lwt_ppx` code.
url = "https://github.com/ocsigen/lwt/archive/4.4.0.tar.gz";
sha256 = "1l97zdcql7y13fhaq0m9n9xvxf712jg0w70r72fvv6j49xm4nlhi";
url = "https://github.com/ocsigen/lwt/archive/5.2.0.tar.gz";
sha256 = "1znw8ckwdmqsnrcgar4g33zgr659l4l904bllrz69bbwdnfmz2x3";
};