git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #73164 from judaew/yara-update

yara: 3.10.0 -> 3.11.0, fix build

commit5d2dc6fd79291d3e46c186644b54e45adc09cfcb authorworldofpeace <worldofpeace@protonmail.ch> dateTue 12 Nov 2019, 15:34 (7 years ago) parent276709629ebc93
1 file changed+13−4
pkgs/tools/security/yara/default.nix+13−4
pkgs/tools/security/yara/default.nix+13−4
@@ -1,21 +1,30 @@
1−{ stdenv, fetchFromGitHub, autoconf, automake, libtool, pcre
1+{ stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool, pcre
22, withCrypto ? true, openssl
33, enableMagic ? true, file
44, enableCuckoo ? true, jansson
55}:
66
77stdenv.mkDerivation rec {
8− version = "3.10.0";
8+ version = "3.11.0";
99 pname = "yara";
1010
1111 src = fetchFromGitHub {
1212 owner = "VirusTotal";
1313 repo = "yara";
1414 rev = "v${version}";
15− sha256 = "1qxqk324cyvi4n09s79786ciig1gdyhs9dnsm07hf95a3kh6w5z2";
15+ sha256 = "0mx3xm2a70fx8vlynkavq8gfd9w5yjcix5rx85444i2s1h6kcd0j";
1616 };
1717
18− buildInputs = [ autoconf automake libtool pcre]
18+ # See: https://github.com/VirusTotal/yara/issues/1036
19+ # TODO: This patch should not be necessary in the next release
20+ patches = [
21+ (fetchpatch {
22+ url = "https://github.com/VirusTotal/yara/commit/04df811fa61fa54390b274bfcf56d7403c184404.patch";
23+ sha256 = "0hsbc2k7nmk2kskll971draz0an4rmcs5v0iql47mz596vqvkzmb";
24+ })
25+ ];
26+
27+ buildInputs = [ autoconf automake libtool pcre ]
1928 ++ stdenv.lib.optionals withCrypto [ openssl ]
2029 ++ stdenv.lib.optionals enableMagic [ file ]
2130 ++ stdenv.lib.optionals enableCuckoo [ jansson ]