warzone2100: fix build against curl-8.4
Without the change the builds fails as https://hydra.nixos.org/log/536ibf1x7xzfnqr0m5shn09x75cjcaf2-warzone2100-4.3.5.drv: error: 'CURLSSLBACKEND_NSS' is deprecated: since 8.3.0. [-Werror=deprecated-declarations] 1273 | const std::vector<curl_sslbackend> backendPreferencesOrder = {CURLSSLBACKEND_SCHANNEL, CURLSSLBACKEND_DARWINSSL, CURLSSLBACKEND_GNUTLS, CURLSSLBACKEND_NSS}; The change pulls in upstream fix.
This commit is contained in:
parent
1ce5a446bb
commit
3046935bfe
1 changed files with 11 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchurl
|
||||
, fetchpatch
|
||||
, cmake
|
||||
, ninja
|
||||
, p7zip
|
||||
|
@ -53,6 +54,16 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-AdYI9vljjhTXyFffQK0znBv8IHoF2q/nFXrYZSo0BcM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Upstream patch for curl-8.4 support,
|
||||
# TODO: remove on next release.
|
||||
(fetchpatch {
|
||||
name = "curl-8.4.patch";
|
||||
url = "https://github.com/Warzone2100/warzone2100/commit/db1cf70950d4fa6630f37a7bf85f548b48ed53cd.patch";
|
||||
hash = "sha256-/jRan5pi7CamZaCaRdfugFmtCbWTKmCt63q0NBuTrFk=";
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
SDL2
|
||||
libtheora
|
||||
|
|
Loading…
Reference in a new issue