From 6c871c38be714c1cb4d5b7db6dd3a953cc6099e3 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Wed, 2 Nov 2022 13:31:10 +0800 Subject: [PATCH] xca: build with openssl 3.0 --- pkgs/applications/misc/xca/default.nix | 8 +++++++- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/xca/default.nix b/pkgs/applications/misc/xca/default.nix index 7b94af3b52a1..f5c8e90d2703 100644 --- a/pkgs/applications/misc/xca/default.nix +++ b/pkgs/applications/misc/xca/default.nix @@ -1,4 +1,4 @@ -{ stdenv, mkDerivation, lib, fetchFromGitHub, autoreconfHook, pkg-config +{ stdenv, mkDerivation, lib, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config , libtool, openssl, qtbase, qttools, sphinx }: mkDerivation rec { @@ -12,6 +12,12 @@ mkDerivation rec { sha256 = "04z0mmjsry72nvib4icmwh1717y4q9pf2gr68ljrzln4vv4ckpwk"; }; + # Adaptions to stay OpenSSL 3.0 compatible + patches = [ (fetchpatch { + url = "https://github.com/chris2511/xca/commit/f5ac099e948ea354deac75ff9fa09d51453476e1.patch"; + hash = "sha256-4rRO2y9hZq879HTsgBgbXGRYEcgfG4niJKyK3l3PMZ8="; + }) ]; + buildInputs = [ libtool openssl qtbase ]; nativeBuildInputs = [ autoreconfHook pkg-config qttools sphinx ]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7784e256c1a0..d77ac7009966 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -32949,7 +32949,7 @@ with pkgs; kodi-cli = callPackage ../tools/misc/kodi-cli { }; - xca = libsForQt5_openssl_1_1.callPackage ../applications/misc/xca { }; + xca = libsForQt5.callPackage ../applications/misc/xca { }; xcalib = callPackage ../tools/X11/xcalib { };