clamav: enable build on darwin
This commit is contained in:
parent
63d98cab9b
commit
8cd8da2c88
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig
|
{ stdenv, fetchurl, pkgconfig
|
||||||
, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
|
, zlib, bzip2, libiconv, libxml2, openssl, ncurses, curl, libmilter, pcre2
|
||||||
, libmspack, systemd
|
, libmspack, systemd, Foundation
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -20,13 +20,12 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre2 libmspack
|
zlib bzip2 libxml2 openssl ncurses curl libiconv libmilter pcre2 libmspack
|
||||||
systemd
|
] ++ stdenv.lib.optional stdenv.isLinux systemd
|
||||||
];
|
++ stdenv.lib.optional stdenv.isDarwin Foundation;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--libdir=$(out)/lib"
|
"--libdir=$(out)/lib"
|
||||||
"--sysconfdir=/etc/clamav"
|
"--sysconfdir=/etc/clamav"
|
||||||
"--with-systemdsystemunitdir=$(out)/lib/systemd"
|
|
||||||
"--disable-llvm" # enabling breaks the build at the moment
|
"--disable-llvm" # enabling breaks the build at the moment
|
||||||
"--with-zlib=${zlib.dev}"
|
"--with-zlib=${zlib.dev}"
|
||||||
"--with-xml=${libxml2.dev}"
|
"--with-xml=${libxml2.dev}"
|
||||||
@ -34,7 +33,8 @@ stdenv.mkDerivation rec {
|
|||||||
"--with-libcurl=${curl.dev}"
|
"--with-libcurl=${curl.dev}"
|
||||||
"--with-system-libmspack"
|
"--with-system-libmspack"
|
||||||
"--enable-milter"
|
"--enable-milter"
|
||||||
];
|
] ++ stdenv.lib.optional stdenv.isLinux
|
||||||
|
"--with-systemdsystemunitdir=$(out)/lib/systemd";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
mkdir $out/etc
|
mkdir $out/etc
|
||||||
@ -46,6 +46,6 @@ stdenv.mkDerivation rec {
|
|||||||
description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";
|
description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
maintainers = with maintainers; [ phreedom robberer qknight fpletz globin ];
|
maintainers = with maintainers; [ phreedom robberer qknight fpletz globin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2712,7 +2712,9 @@ in
|
|||||||
|
|
||||||
ckb-next = libsForQt5.callPackage ../tools/misc/ckb-next { };
|
ckb-next = libsForQt5.callPackage ../tools/misc/ckb-next { };
|
||||||
|
|
||||||
clamav = callPackage ../tools/security/clamav { };
|
clamav = callPackage ../tools/security/clamav {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Foundation;
|
||||||
|
};
|
||||||
|
|
||||||
clex = callPackage ../tools/misc/clex { };
|
clex = callPackage ../tools/misc/clex { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user