From 2558ef2b05670f0693e579608c5397dc6caf4f73 Mon Sep 17 00:00:00 2001 From: Ali Caglayan Date: Wed, 11 Oct 2023 17:43:14 +0100 Subject: [PATCH] nix: add lwt We don't need lwt when building notty, but it is required when building the tests. The tests are useful to check how things look. Signed-off-by: Ali Caglayan --- flake.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index cc07fc2..ff5993f 100644 --- a/flake.nix +++ b/flake.nix @@ -9,8 +9,7 @@ let pkgs = nixpkgs.legacyPackages."${system}"; inherit (pkgs.ocamlPackages) buildDunePackage; - in - rec { + in rec { packages = rec { default = notty; notty = buildDunePackage { @@ -19,7 +18,7 @@ src = ./.; duneVersion = "3"; nativeBuildInputs = with pkgs.ocamlPackages; [ cppo ]; - propagatedBuildInputs = with pkgs.ocamlPackages; [ uutf ]; + propagatedBuildInputs = with pkgs.ocamlPackages; [ uutf lwt ]; doCheck = true; }; };