mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #42858 from oxij/pkg/update-rspamd
rspamd: 1.6.6 -> 1.7.4
This commit is contained in:
commit
366cd2ad8c
1 changed files with 10 additions and 14 deletions
|
@ -6,29 +6,25 @@ in
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "rspamd-${version}";
|
||||
version = "1.6.6";
|
||||
version = "1.7.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "vstakhov";
|
||||
repo = "rspamd";
|
||||
rev = version;
|
||||
sha256 = "04jqrki7rlxywdig264kavy1h5882rspi2drkbdzrk35jjq8rh3h";
|
||||
sha256 = "1gb4zg8i1nj337f65s434h299ad19c0d7jyawb2glvv3n4cshm97";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkgconfig perl ];
|
||||
buildInputs = [ glib gmime libevent libmagic luajit openssl pcre sqlite ragel icu libfann];
|
||||
buildInputs = [ glib gmime libevent libmagic luajit openssl pcre sqlite ragel icu libfann ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace conf/common.conf --replace "\$CONFDIR/rspamd.conf.local" "/etc/rspamd/rspamd.conf.local"
|
||||
substituteInPlace conf/common.conf --replace "\$CONFDIR/rspamd.conf.local.override" "/etc/rspamd/rspamd.conf.local.override"
|
||||
'';
|
||||
|
||||
cmakeFlags = ''
|
||||
-DDEBIAN_BUILD=ON
|
||||
-DRUNDIR=/var/run/rspamd
|
||||
-DDBDIR=/var/lib/rspamd
|
||||
-DLOGDIR=/var/log/rspamd
|
||||
'';
|
||||
cmakeFlags = [
|
||||
"-DDEBIAN_BUILD=ON"
|
||||
"-DRUNDIR=/var/run/rspamd"
|
||||
"-DDBDIR=/var/lib/rspamd"
|
||||
"-DLOGDIR=/var/log/rspamd"
|
||||
"-DLOCAL_CONFDIR=/etc/rspamd"
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/vstakhov/rspamd;
|
||||
|
|
Loading…
Reference in a new issue