From 8a6ddfefa3350ca7a8233ebf7f1809b0245946d2 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Mon, 4 May 2026 22:46:00 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.lwd:=200.4=20=E2=86=92=200.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/by-name/do/docfd/package.nix | 13 +++++++++++-- pkgs/development/ocaml-modules/lwd/default.nix | 12 +++++------- pkgs/development/ocaml-modules/lwd/nottui-unix.nix | 2 -- pkgs/development/ocaml-modules/lwd/nottui.nix | 4 ++-- 4 files changed, 18 insertions(+), 13 deletions(-) diff --git a/pkgs/by-name/do/docfd/package.nix b/pkgs/by-name/do/docfd/package.nix index 925a5ba07a51..6e4d4663bb5e 100644 --- a/pkgs/by-name/do/docfd/package.nix +++ b/pkgs/by-name/do/docfd/package.nix @@ -3,6 +3,7 @@ ocamlPackages, stdenv, fetchFromGitHub, + fetchpatch, python3, dune, makeWrapper, @@ -25,8 +26,16 @@ ocamlPackages.buildDunePackage rec { hash = "sha256-d7c72jXadwBtUqarfdGnEDo9yFwCAeEX0GGVqCe70Ak="; }; - # Compatibility with nottui ≥ 0.4 - patches = [ ./nottui-unix.patch ]; + patches = [ + # Compatibility with nottui ≥ 0.4 + ./nottui-unix.patch + # Compatibility with lwd ≥ 0.5 + (fetchpatch { + url = "https://github.com/darrenldl/docfd/commit/439ff57e80778f684cf8526b3b33c745a02da2a7.patch"; + includes = [ "*.ml" ]; + hash = "sha256-bB+zta2VcrDd42FUD9ExBui787LmtN3PMyb/MJQO7u0="; + }) + ]; nativeBuildInputs = [ python3 diff --git a/pkgs/development/ocaml-modules/lwd/default.nix b/pkgs/development/ocaml-modules/lwd/default.nix index 771b003b50a2..0f59c3f370a4 100644 --- a/pkgs/development/ocaml-modules/lwd/default.nix +++ b/pkgs/development/ocaml-modules/lwd/default.nix @@ -5,15 +5,13 @@ seq, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "lwd"; - version = "0.4"; - - minimalOCamlVersion = "4.08"; + version = "0.5"; src = fetchurl { - url = "https://github.com/let-def/lwd/releases/download/v${version}/lwd-${version}.tbz"; - hash = "sha256-nnFltlBWfPOerF4HuVNGzXcZxRSdsM+abeD5ZdQ+x8U="; + url = "https://github.com/let-def/lwd/releases/download/v${finalAttrs.version}/lwd-${finalAttrs.version}.tbz"; + hash = "sha256-YAZjeLuhAxUCB3RrBul4u70g5TEqT2C7Z09YbYyPZOY="; }; propagatedBuildInputs = [ seq ]; @@ -24,4 +22,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.alizter ]; homepage = "https://github.com/let-def/lwd"; }; -} +}) diff --git a/pkgs/development/ocaml-modules/lwd/nottui-unix.nix b/pkgs/development/ocaml-modules/lwd/nottui-unix.nix index 88a3839d152e..6068ab56af8a 100644 --- a/pkgs/development/ocaml-modules/lwd/nottui-unix.nix +++ b/pkgs/development/ocaml-modules/lwd/nottui-unix.nix @@ -3,7 +3,6 @@ buildDunePackage, lwd, nottui, - notty, }: buildDunePackage { @@ -14,7 +13,6 @@ buildDunePackage { propagatedBuildInputs = [ lwd nottui - notty ]; meta = { diff --git a/pkgs/development/ocaml-modules/lwd/nottui.nix b/pkgs/development/ocaml-modules/lwd/nottui.nix index ccb134674c36..76c94f21aa38 100644 --- a/pkgs/development/ocaml-modules/lwd/nottui.nix +++ b/pkgs/development/ocaml-modules/lwd/nottui.nix @@ -2,7 +2,7 @@ lib, buildDunePackage, lwd, - notty, + notty-community, }: buildDunePackage { @@ -12,7 +12,7 @@ buildDunePackage { propagatedBuildInputs = [ lwd - notty + notty-community ]; meta = {