diff --git a/tools/nix/sharedLibDeps.nix b/tools/nix/sharedLibDeps.nix index 7a7d10828fb853..378d7543f970e4 100644 --- a/tools/nix/sharedLibDeps.nix +++ b/tools/nix/sharedLibDeps.nix @@ -36,25 +36,43 @@ // (pkgs.lib.optionalAttrs withSQLite { inherit (pkgs) sqlite; }) -// (pkgs.lib.optionalAttrs withSSL { - openssl = pkgs.openssl.overrideAttrs (old: { - version = "3.5.4"; - src = pkgs.fetchurl { - url = builtins.replaceStrings [ old.version ] [ "3.5.4" ] old.src.url; - hash = "sha256-lnMR+ElVMWlpvbHY1LmDcY70IzhjnGIexMNP3e81Xpk="; - }; - doCheck = false; - configureFlags = (old.configureFlags or [ ]) ++ [ - "no-docs" - "no-tests" - ]; - outputs = [ - "bin" - "out" - "dev" - ]; - }); -}) +// (pkgs.lib.optionalAttrs withSSL ( + let + version = "3.5.5"; + opensslSrc = "/pkgs/development/libraries/openssl/"; + inherit + (pkgs.callPackage "${ + pkgs.fetchgit { + url = "https://github.com/NixOS/nixpkgs.git"; + rev = "a5b50d31e0fd60227495ad2b2760cbda3581ec77"; + sparseCheckout = [ opensslSrc ]; + nonConeMode = true; + hash = "sha256-Qo3IoUeccGO2GxFSYufyYjZmN5LGSek0z82pN73YXic="; + } + }${opensslSrc}" { }) + openssl_3_6 + ; + in + { + openssl = openssl_3_6.overrideAttrs (old: { + inherit version; + src = pkgs.fetchurl { + url = builtins.replaceStrings [ old.version ] [ version ] old.src.url; + hash = "sha256-soyRUyqLZaH5g7TCi3SIF05KAQCOKc6Oab14nyi8Kok="; + }; + doCheck = false; + configureFlags = (old.configureFlags or [ ]) ++ [ + "no-docs" + "no-tests" + ]; + outputs = [ + "bin" + "out" + "dev" + ]; + }); + } +)) // (pkgs.lib.optionalAttrs withTemporal { inherit (pkgs) temporal_capi; })