Skip to content

Commit f323282

Browse files
committed
fix: nix flake
1 parent ec1044a commit f323282

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

flake.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@
9191
${nixpkgs.lib.concatStringsSep "\n" (nixpkgs.lib.attrValues config.env-hooks)}
9292
9393
# Export paths for openssl-sys build script
94-
export OPENSSL_DIR="${pkgs.openssl.dev}"
95-
export OPENSSL_LIB_DIR="${pkgs.openssl.dev}/lib"
94+
export OPENSSL_DIR="${pkgs.openssl.out}"
95+
export OPENSSL_LIB_DIR="${pkgs.openssl.out}/lib"
9696
export OPENSSL_INCLUDE_DIR="${pkgs.openssl.dev}/include"
9797
# Ensure pkg-config can find the openssl .pc file
9898
export PKG_CONFIG_PATH="${pkgs.openssl.dev}/lib/pkgconfig:${pkgs.pkg-config}/lib/pkgconfig:$PKG_CONFIG_PATH"
99+
# Debug: List contents of OpenSSL lib directory to verify
100+
echo "OpenSSL lib directory contents:"
101+
ls -la ${pkgs.openssl.out}/lib || echo "Failed to list OpenSSL lib directory"
99102
echo ">>> OpenSSL environment variables set by shellHook <<<"
100103
'';
101104
};

0 commit comments

Comments
 (0)