From b25391b3dfded6e82a2e67672b0f3c7ee6ea6d67 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 19 Mar 2026 17:05:42 +0100 Subject: [PATCH 1/2] flake: fix missing dependencies for make Running `nix develop`, `./configure` and then `make` fails with this error: ``` tests/fuzz/fuzz-hmac-sha256.c:8:10: fatal error: openssl/evp.h: No such file or directory ``` After adding `openssl`, without `protobuf`, `make` fails while building `cln-grpc v0.5.0` because the `protoc` binary is missing. --- nix/pkgs/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nix/pkgs/default.nix b/nix/pkgs/default.nix index fb1663c19cba..7b2167e74f79 100644 --- a/nix/pkgs/default.nix +++ b/nix/pkgs/default.nix @@ -35,6 +35,7 @@ stdenv.mkDerivation { libtool lowdown pkgconf + protobuf py3 unzip which @@ -52,6 +53,7 @@ stdenv.mkDerivation { gmp jq libsodium + openssl sqlite zlib ]; From cc462d3d3e9a37e1044257c78ae95bd0abf63da6 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 19 Mar 2026 17:06:55 +0100 Subject: [PATCH 2/2] flake: fix libstdc++.so.6 not found also include uv in nix develop shell to run tests --- nix/shells.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nix/shells.nix b/nix/shells.nix index bb3588c28b3a..9ca4052fa79a 100644 --- a/nix/shells.nix +++ b/nix/shells.nix @@ -9,7 +9,18 @@ }: { devShells = { - default = pkgs.mkShell { inputsFrom = [ config.packages.default ]; }; + default = pkgs.mkShell { + inputsFrom = [ config.packages.default ]; + buildInputs = [ + pkgs.stdenv.cc.cc.lib + pkgs.uv + ]; + # this fixes the following error when running uv pytest tests/: + # ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory + shellHook = '' + export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib}/lib''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" + ''; + }; postgres = pkgs.mkShell { inputsFrom = [ config.packages.cln-postgres ]; }; rust = pkgs.craneLib.devShell { checks = {