uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
64
pkgs/tools/security/yara/default.nix
Normal file
64
pkgs/tools/security/yara/default.nix
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
{ lib, stdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pcre
|
||||
, pkg-config
|
||||
, protobufc
|
||||
, withCrypto ? true, openssl
|
||||
, enableCuckoo ? true, jansson
|
||||
, enableDex ? true
|
||||
, enableDotNet ? true
|
||||
, enableMacho ? true
|
||||
, enableMagic ? true, file
|
||||
, enableStatic ? false
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "yara";
|
||||
version = "4.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VirusTotal";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-/6EMnNVNSgeYHrbPF3QDS5oc0eLaggKNuZi2pXx/CqY=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
pcre
|
||||
protobufc
|
||||
] ++ lib.optionals withCrypto [
|
||||
openssl
|
||||
] ++ lib.optionals enableMagic [
|
||||
file
|
||||
] ++ lib.optionals enableCuckoo [
|
||||
jansson
|
||||
];
|
||||
|
||||
preConfigure = "./bootstrap.sh";
|
||||
|
||||
configureFlags = [
|
||||
(lib.withFeature withCrypto "crypto")
|
||||
(lib.enableFeature enableCuckoo "cuckoo")
|
||||
(lib.enableFeature enableDex "dex")
|
||||
(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/";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue