mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-21 19:44:09 +00:00
yara-x: init at 0.3.0
Announcement blogpost: https://virustotal.github.io/yara-x/blog/yara-is-dead-long-live-yara-x/
This commit is contained in:
parent
e06ae19f5d
commit
c8da86f45f
44
pkgs/by-name/ya/yara-x/package.nix
Normal file
44
pkgs/by-name/ya/yara-x/package.nix
Normal file
@ -0,0 +1,44 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, rustPlatform
|
||||
, cmake
|
||||
, installShellFiles
|
||||
, testers
|
||||
, yara-x
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "yara-x";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "VirusTotal";
|
||||
repo = "yara-x";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-AFRKsBNDgjIsLnr61ME4WvDj+DsvIhFUnDmOGn3So8o=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-cZ/bWaTNnX9+o8D5lMu72snc4CLpjqcwjintbw59OXA=";
|
||||
|
||||
nativeBuildInputs = [ cmake installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd yr \
|
||||
--bash <($out/bin/yr completion bash) \
|
||||
--fish <($out/bin/yr completion fish) \
|
||||
--zsh <($out/bin/yr completion zsh)
|
||||
'';
|
||||
|
||||
passthru.tests.version = testers.testVersion {
|
||||
package = yara-x;
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Tool to do pattern matching for malware research";
|
||||
homepage = "https://virustotal.github.io/yara-x/";
|
||||
changelog = "https://github.com/VirusTotal/yara-x/releases/tag/v${version}";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ lesuisse ];
|
||||
mainProgram = "yr";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user