rPackages.s2: fix openssl linking

This commit is contained in:
Justin Bedo 2022-08-22 11:41:09 +10:00
parent d7bf754c96
commit ba3564f74b
No known key found for this signature in database
GPG key ID: 2C18202C56C182BD

View file

@ -1041,6 +1041,11 @@ let
''; '';
}); });
s2 = old.s2.overrideDerivation (attrs: {
PKGCONFIG_CFLAGS = "-I${pkgs.openssl.dev}/include";
PKGCONFIG_LIBS = "-Wl,-rpath,${lib.getLib pkgs.openssl}/lib -L${lib.getLib pkgs.openssl}/lib -lssl -lcrypto";
});
Rmpi = old.Rmpi.overrideDerivation (attrs: { Rmpi = old.Rmpi.overrideDerivation (attrs: {
configureFlags = [ configureFlags = [
"--with-Rmpi-type=OPENMPI" "--with-Rmpi-type=OPENMPI"