mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 04:45:39 +00:00
Merge pull request #249263 from NickCao/rspamd
rspamd: add patch fixing memory leak
This commit is contained in:
commit
4f391fd152
@ -1,6 +1,23 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, cmake, perl
|
{ stdenv
|
||||||
, glib, luajit, openssl, pcre, pkg-config, sqlite, ragel, icu
|
, lib
|
||||||
, hyperscan, jemalloc, blas, lapack, lua, libsodium
|
, fetchFromGitHub
|
||||||
|
, fetchpatch2
|
||||||
|
, cmake
|
||||||
|
, perl
|
||||||
|
, glib
|
||||||
|
, luajit
|
||||||
|
, openssl
|
||||||
|
, pcre
|
||||||
|
, pkg-config
|
||||||
|
, sqlite
|
||||||
|
, ragel
|
||||||
|
, icu
|
||||||
|
, hyperscan
|
||||||
|
, jemalloc
|
||||||
|
, blas
|
||||||
|
, lapack
|
||||||
|
, lua
|
||||||
|
, libsodium
|
||||||
, withBlas ? true
|
, withBlas ? true
|
||||||
, withHyperscan ? stdenv.isx86_64
|
, withHyperscan ? stdenv.isx86_64
|
||||||
, withLuaJIT ? stdenv.isx86_64
|
, withLuaJIT ? stdenv.isx86_64
|
||||||
@ -20,6 +37,15 @@ stdenv.mkDerivation rec {
|
|||||||
hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
|
hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# Fix leak in `gzip` function
|
||||||
|
# https://github.com/rspamd/rspamd/issues/4564
|
||||||
|
(fetchpatch2 {
|
||||||
|
url = "https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch";
|
||||||
|
hash = "sha256-ltkC/mZcYmGoSFILaTTRB/UWSn36flEbuJP4Buys05Y=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
hardeningEnable = [ "pie" ];
|
hardeningEnable = [ "pie" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config perl ];
|
nativeBuildInputs = [ cmake pkg-config perl ];
|
||||||
|
Loading…
Reference in New Issue
Block a user