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 ]; 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 = {