Merge pull request #73164 from judaew/yara-update
yara: 3.10.0 -> 3.11.0, fix build
This commit is contained in:
commit
5d2dc6fd79
@ -1,20 +1,29 @@
|
|||||||
{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pcre
|
{ stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool, pcre
|
||||||
, withCrypto ? true, openssl
|
, withCrypto ? true, openssl
|
||||||
, enableMagic ? true, file
|
, enableMagic ? true, file
|
||||||
, enableCuckoo ? true, jansson
|
, enableCuckoo ? true, jansson
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "3.10.0";
|
version = "3.11.0";
|
||||||
pname = "yara";
|
pname = "yara";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "VirusTotal";
|
owner = "VirusTotal";
|
||||||
repo = "yara";
|
repo = "yara";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1qxqk324cyvi4n09s79786ciig1gdyhs9dnsm07hf95a3kh6w5z2";
|
sha256 = "0mx3xm2a70fx8vlynkavq8gfd9w5yjcix5rx85444i2s1h6kcd0j";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# See: https://github.com/VirusTotal/yara/issues/1036
|
||||||
|
# TODO: This patch should not be necessary in the next release
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/VirusTotal/yara/commit/04df811fa61fa54390b274bfcf56d7403c184404.patch";
|
||||||
|
sha256 = "0hsbc2k7nmk2kskll971draz0an4rmcs5v0iql47mz596vqvkzmb";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ autoconf automake libtool pcre ]
|
buildInputs = [ autoconf automake libtool pcre ]
|
||||||
++ stdenv.lib.optionals withCrypto [ openssl ]
|
++ stdenv.lib.optionals withCrypto [ openssl ]
|
||||||
++ stdenv.lib.optionals enableMagic [ file ]
|
++ stdenv.lib.optionals enableMagic [ file ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user