uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
23
pkgs/servers/mail/clamsmtp/default.nix
Normal file
23
pkgs/servers/mail/clamsmtp/default.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
{ lib, stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "clamsmtp";
|
||||
version = "1.10";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://thewalter.net/stef/software/clamsmtp/${pname}-${version}.tar.gz";
|
||||
sha256 = "0apr1pxifw6f1rbbsdrrwzs1dnhybg4hda3qqhqcw7p14r5xnbx5";
|
||||
};
|
||||
|
||||
patches = [ ./header-order.patch ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "SMTP filter that allows to check for viruses using the ClamAV
|
||||
anti-virus software";
|
||||
homepage = "http://thewalter.net/stef/software/clamsmtp/";
|
||||
license = licenses.bsd3;
|
||||
maintainers = [ maintainers.ekleog ];
|
||||
mainProgram = "clamsmtpd";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
25
pkgs/servers/mail/clamsmtp/header-order.patch
Normal file
25
pkgs/servers/mail/clamsmtp/header-order.patch
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
diff --git a/common/smtppass.c b/common/smtppass.c
|
||||
index d9be1ba..4a366f4 100644
|
||||
--- a/common/smtppass.c
|
||||
+++ b/common/smtppass.c
|
||||
@@ -60,15 +60,15 @@
|
||||
|
||||
#include "usuals.h"
|
||||
|
||||
-#ifdef LINUX_TRANSPARENT_PROXY
|
||||
-#include <linux/netfilter_ipv4.h>
|
||||
-#endif
|
||||
-
|
||||
#include "compat.h"
|
||||
#include "sock_any.h"
|
||||
#include "stringx.h"
|
||||
#include "sppriv.h"
|
||||
|
||||
+#ifdef LINUX_TRANSPARENT_PROXY
|
||||
+#include <linux/netfilter_ipv4.h>
|
||||
+#endif
|
||||
+
|
||||
/* -----------------------------------------------------------------------
|
||||
* STRUCTURES
|
||||
*/
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue