nzbget: make compatible with openssl 3

This commit is contained in:
figsoda 2023-05-13 20:04:39 -04:00
parent 3c277b537b
commit d300f60bea
2 changed files with 37 additions and 8 deletions

View file

@ -1,5 +1,18 @@
{ lib, stdenv, fetchurl, pkg-config, libxml2, ncurses, libsigcxx, libpar2 { lib
, gnutls, libgcrypt, zlib, openssl, nixosTests }: , stdenv
, fetchurl
, fetchpatch
, pkg-config
, gnutls
, libgcrypt
, libpar2
, libsigcxx
, libxml2
, ncurses
, openssl
, zlib
, nixosTests
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "nzbget"; pname = "nzbget";
@ -7,13 +20,31 @@ stdenv.mkDerivation rec {
src = fetchurl { src = fetchurl {
url = "https://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz"; url = "https://github.com/nzbget/nzbget/releases/download/v${version}/nzbget-${version}-src.tar.gz";
sha256 = "sha256-To/BvrgNwq8tajajOjP0Te3d1EhgAsZE9MR5MEMHICU="; hash = "sha256-To/BvrgNwq8tajajOjP0Te3d1EhgAsZE9MR5MEMHICU=";
}; };
patches = [
# openssl 3 compatibility
# https://github.com/nzbget/nzbget/pull/793
(fetchpatch {
name = "daemon-connect-dont-use-fips-mode-set-with-openssl-3.patch";
url = "https://github.com/nzbget/nzbget/commit/f76e8555504e3af4cf8dd4a8c8e374b3ca025099.patch";
hash = "sha256-39lvnhBK4126TYsRbJOUxsV9s9Hjuviw7CH/wWn/VkM=";
})
];
nativeBuildInputs = [ pkg-config ]; nativeBuildInputs = [ pkg-config ];
buildInputs = [ libxml2 ncurses libsigcxx libpar2 gnutls buildInputs = [
libgcrypt zlib openssl ]; gnutls
libgcrypt
libpar2
libsigcxx
libxml2
ncurses
openssl
zlib
];
enableParallelBuilding = true; enableParallelBuilding = true;

View file

@ -10568,9 +10568,7 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security; inherit (darwin.apple_sdk.frameworks) Security;
}; };
nzbget = callPackage ../tools/networking/nzbget { nzbget = callPackage ../tools/networking/nzbget { };
openssl = openssl_1_1;
};
nzbhydra2 = callPackage ../servers/nzbhydra2 { nzbhydra2 = callPackage ../servers/nzbhydra2 {
# You need Java (at least 8, at most 15) # You need Java (at least 8, at most 15)