mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-30 17:10:18 +02:00
commit
078763fdd2
|
@ -1,30 +1,28 @@
|
||||||
{ stdenv, fetchFromGitHub, fetchpatch, autoconf, automake, libtool, pcre
|
{ stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, autoreconfHook
|
||||||
|
, pcre
|
||||||
|
, pkg-config
|
||||||
|
, protobufc
|
||||||
, 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.11.0";
|
version = "4.0.1";
|
||||||
pname = "yara";
|
pname = "yara";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "VirusTotal";
|
owner = "VirusTotal";
|
||||||
repo = "yara";
|
repo = "yara";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0mx3xm2a70fx8vlynkavq8gfd9w5yjcix5rx85444i2s1h6kcd0j";
|
sha256 = "0dy8jf0pdn0wilxy1pj6pqjxg7icxkwax09w54np87gl9p00f5rk";
|
||||||
};
|
};
|
||||||
|
|
||||||
# See: https://github.com/VirusTotal/yara/issues/1036
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
# 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 = [ pcre protobufc ]
|
||||||
++ stdenv.lib.optionals withCrypto [ openssl ]
|
++ stdenv.lib.optionals withCrypto [ openssl ]
|
||||||
++ stdenv.lib.optionals enableMagic [ file ]
|
++ stdenv.lib.optionals enableMagic [ file ]
|
||||||
++ stdenv.lib.optionals enableCuckoo [ jansson ]
|
++ stdenv.lib.optionals enableCuckoo [ jansson ]
|
||||||
|
@ -40,8 +38,8 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The pattern matching swiss knife for malware researchers";
|
description = "The pattern matching swiss knife for malware researchers";
|
||||||
homepage = "http://Virustotal.github.io/yara/";
|
homepage = "http://Virustotal.github.io/yara/";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
platforms = stdenv.lib.platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue