Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions pkgs/development/libraries/openssl/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
# files.

let
common = { version, sha256, patches ? [], withDocs ? false, extraMeta ? {} }:
common = { version, hash, patches ? [], withDocs ? false, extraMeta ? {} }:
stdenv.mkDerivation (finalAttrs: {
pname = "openssl";
inherit version;

src = fetchurl {
url = "https://www.openssl.org/source/${finalAttrs.pname}-${version}.tar.gz";
inherit sha256;
inherit hash;
};

inherit patches;
Expand Down Expand Up @@ -229,7 +229,7 @@ in {

openssl_1_1 = common {
version = "1.1.1t";
sha256 = "sha256-je6bJL2x3L8MPR6bAvuPa/IhZegH9Fret8lndTaFnTs=";
hash = "sha256-je6bJL2x3L8MPR6bAvuPa/IhZegH9Fret8lndTaFnTs=";
patches = [
./1.1/nix-ssl-cert-file.patch

Expand All @@ -241,14 +241,14 @@ in {
};

openssl_3 = common {
version = "3.0.8";
sha256 = "sha256-bBPSvzj98x6sPOKjRwc2c/XWMmM5jx9p0N9KQSU+Sz4=";
version = "3.1.0";
hash = "sha256-qqklrZgodFxMrZ2e/rJz3sqCDyzc8sOsfXwSErfEl7Q=";
patches = [
./3.0/nix-ssl-cert-file.patch
./3/nix-ssl-cert-file.patch

# openssl will only compile in KTLS if the current kernel supports it.
# This patch disables build-time detection.
./3.0/openssl-disable-kernel-detection.patch
./3/openssl-disable-kernel-detection.patch

(if stdenv.hostPlatform.isDarwin
then ./use-etc-ssl-certs-darwin.patch
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/libraries/quictls/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ stdenv.mkDerivation rec {
};

patches = [
../openssl/3.0/nix-ssl-cert-file.patch
../openssl/3/nix-ssl-cert-file.patch

# openssl will only compile in KTLS if the current kernel supports it.
# This patch disables build-time detection.
../openssl/3.0/openssl-disable-kernel-detection.patch
../openssl/3/openssl-disable-kernel-detection.patch

(if stdenv.hostPlatform.isDarwin
then ../openssl/use-etc-ssl-certs-darwin.patch
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22856,7 +22856,7 @@ with pkgs;
openssl = openssl_3;

openssl_legacy = openssl.override {
conf = ../development/libraries/openssl/3.0/legacy.cnf;
conf = ../development/libraries/openssl/3/legacy.cnf;
};

inherit (callPackages ../development/libraries/openssl { })
Expand Down