tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
rspamd: add patch fixing memory leak
Nick Cao
2 years ago
ea87ec9b
eb2b0b09
+29
-3
1 changed file
expand all
collapse all
unified
split
pkgs
servers
mail
rspamd
default.nix
+29
-3
pkgs/servers/mail/rspamd/default.nix
···
1
1
-
{ stdenv, lib, fetchFromGitHub, cmake, perl
2
2
-
, glib, luajit, openssl, pcre, pkg-config, sqlite, ragel, icu
3
3
-
, hyperscan, jemalloc, blas, lapack, lua, libsodium
1
1
+
{ stdenv
2
2
+
, lib
3
3
+
, fetchFromGitHub
4
4
+
, fetchpatch2
5
5
+
, cmake
6
6
+
, perl
7
7
+
, glib
8
8
+
, luajit
9
9
+
, openssl
10
10
+
, pcre
11
11
+
, pkg-config
12
12
+
, sqlite
13
13
+
, ragel
14
14
+
, icu
15
15
+
, hyperscan
16
16
+
, jemalloc
17
17
+
, blas
18
18
+
, lapack
19
19
+
, lua
20
20
+
, libsodium
4
21
, withBlas ? true
5
22
, withHyperscan ? stdenv.isx86_64
6
23
, withLuaJIT ? stdenv.isx86_64
···
19
36
rev = version;
20
37
hash = "sha256-GuWuJK73RE+cS8451m+bcmpZNQEzmZtexm19xgdDQeU=";
21
38
};
39
39
+
40
40
+
patches = [
41
41
+
# Fix leak in `gzip` function
42
42
+
# https://github.com/rspamd/rspamd/issues/4564
43
43
+
(fetchpatch2 {
44
44
+
url = "https://github.com/rspamd/rspamd/commit/ffbab4fbf218514845b8e5209aec044621b1f460.patch";
45
45
+
hash = "sha256-ltkC/mZcYmGoSFILaTTRB/UWSn36flEbuJP4Buys05Y=";
46
46
+
})
47
47
+
];
22
48
23
49
hardeningEnable = [ "pie" ];
24
50