summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2021-05-29 20:47:22 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-06-01 14:02:39 +0000
commitabc7f8ee129deb7422330561de66acb44afacc04 (patch)
tree88e2119abeeed999558b29eddb911719c59f70bd
parentyara: 4.0.5 -> 4.1.1 (diff)
downloadnixpkgs-abc7f8ee129deb7422330561de66acb44afacc04.tar.gz
yara: add enableStatic mode
useful because tests can be enabled in this mode (cherry picked from commit 8cda1cc59e7cd01ce2ff18bc78f6b7a0e7faed19)
-rw-r--r--pkgs/tools/security/yara/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/security/yara/default.nix b/pkgs/tools/security/yara/default.nix
index 3d4411d9087c..3eb5495d2c96 100644
--- a/pkgs/tools/security/yara/default.nix
+++ b/pkgs/tools/security/yara/default.nix
@@ -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/";