yara: add enableStatic mode

useful because tests can be enabled in this mode

(cherry picked from commit 8cda1cc59e7cd01ce2ff18bc78f6b7a0e7faed19)
This commit is contained in:
Robert Scott 2021-05-29 20:47:22 +01:00 committed by github-actions[bot]
parent 529b6eee47
commit abc7f8ee12
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@
, enableDotNet ? true
, enableMacho ? true
, enableMagic ? true, file
, enableStatic ? false
}:
stdenv.mkDerivation rec {
@ -40,8 +41,11 @@ stdenv.mkDerivation rec {
(lib.enableFeature enableDotNet "dotnet")
(lib.enableFeature enableMacho "macho")
(lib.enableFeature enableMagic "magic")
(lib.enableFeature enableStatic "static")
];
doCheck = enableStatic;
meta = with lib; {
description = "The pattern matching swiss knife for malware researchers";
homepage = "http://Virustotal.github.io/yara/";