22 stdenv.mkDerivation rec {
26 src = fetchFromGitHub {
29 rev = "refs/tags/v${version}";
30 hash = "sha256-AecHsUBtBleUkWuYMQ4Tx/PY8cs9j7JwqncBziJD0hA=";
36 url = "https://github.com/VirusTotal/yara/commit/833a580430abe0fbc9bc17a21fb95bf36dacf367.patch";
37 hash = "sha256-EmwyDsxaNd9zfpAOu6ZB9kzg04qB7LAD7UJB3eAuKd8=";
51 ++ lib.optionals withCrypto [ openssl ]
52 ++ lib.optionals enableMagic [ file ]
53 ++ lib.optionals enableCuckoo [ jansson ];
55 preConfigure = "./bootstrap.sh";
58 (lib.withFeature withCrypto "crypto")
59 (lib.enableFeature enableCuckoo "cuckoo")
60 (lib.enableFeature enableDex "dex")
61 (lib.enableFeature enableDotNet "dotnet")
62 (lib.enableFeature enableMacho "macho")
63 (lib.enableFeature enableMagic "magic")
64 (lib.enableFeature enableStatic "static")
67 doCheck = enableStatic;
70 description = "Tool to perform pattern matching for malware-related tasks";
71 homepage = "http://Virustotal.github.io/yara/";
72 changelog = "https://github.com/VirusTotal/yara/releases/tag/v${version}";
73 license = licenses.asl20;
74 maintainers = with maintainers; [ fab ];
76 platforms = platforms.all;