yara: 4.0.5 -> 4.1.1
This commit is contained in:
parent
0d698e6186
commit
2d7f554229
1 changed files with 2 additions and 16 deletions
|
@ -1,5 +1,4 @@
|
||||||
{ lib, stdenv
|
{ lib, stdenv
|
||||||
, fetchpatch
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, autoreconfHook
|
, autoreconfHook
|
||||||
, pcre
|
, pcre
|
||||||
|
@ -14,14 +13,14 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "4.0.5";
|
version = "4.1.1";
|
||||||
pname = "yara";
|
pname = "yara";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "VirusTotal";
|
owner = "VirusTotal";
|
||||||
repo = "yara";
|
repo = "yara";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "1gkdll2ygdlqy1f27a5b84gw2bq75ss7acsx06yhiss90qwdaalq";
|
sha256 = "185j7firn7i5506rcp0va7sxdbminwrm06jsm4c70jf98qxmv522";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
|
@ -34,19 +33,6 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
preConfigure = "./bootstrap.sh";
|
preConfigure = "./bootstrap.sh";
|
||||||
|
|
||||||
# If static builds are disabled, `make all-am` will fail to find libyara.a and
|
|
||||||
# cause a build failure. It appears that somewhere between yara 4.0.1 and
|
|
||||||
# 4.0.5, linking the yara binaries dynamically against libyara.so was broken.
|
|
||||||
#
|
|
||||||
# This was already fixed in yara master. Backport the patch to yara 4.0.5.
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-build-with-no-static.patch";
|
|
||||||
url = "https://github.com/VirusTotal/yara/commit/52e6866023b9aca26571c78fb8759bc3a51ba6dc.diff";
|
|
||||||
sha256 = "074cf99j0rqiyacp60j1hkvjqxia7qwd11xjqgcr8jmfwihb38nr";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(lib.withFeature withCrypto "crypto")
|
(lib.withFeature withCrypto "crypto")
|
||||||
(lib.enableFeature enableCuckoo "cuckoo")
|
(lib.enableFeature enableCuckoo "cuckoo")
|
||||||
|
|
Loading…
Reference in a new issue