Closed brianmay closed 3 weeks ago
I believe this is fixed in #745
I could make openssl work with
...
modules = [
{
env = {
OPENSSL_LIB_DIR = "${nixpkgs.lib.getLib pkgs.openssl}/lib";
OPENSSL_DIR = "${nixpkgs.lib.getDev pkgs.openssl}";
};
...
]
...
This is fixed, please reopen if not.
Describe the bug pkg-config complains that it can't find openssl, but openssl is installed.
To reproduce
Gives the error (when building rust application):
But the openssl wrapper is at the expected location:
The environment:
With debugging:
No wonder, it is setting
PKG_CONFIG_PATH
to nothing for some reason.If I bypass the wrapper script, it works:
I am not sure where this wrapper script comes from:
This problem did not occur until I changed to devenv however. This is the same command with
pkgs.mkShell
:Oh, that is probably because the environment is very different:
If I set
PKG_CONFIG_PATH_FOR_TARGET
to"$PKG_CONFIG_PATH"
then I think this works.Curiously, now I have to add
gcc
to the packages, but now it works.Version
I also reproduced this with the latest main branch.