2021-09-26 12:46:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, makeWrapper
|
|
|
|
, coreutils
|
|
|
|
, bashInteractive
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "0.2.0";
|
2021-09-26 12:46:18 +00:00
|
|
|
pname = "yallback";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abathur";
|
|
|
|
repo = "yallback";
|
|
|
|
rev = "v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
hash = "sha256-t+fdnDJMFiFqN23dSY3TnsZsIDcravtwdNKJ5MiZosE=";
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ coreutils bashInteractive ];
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dv yallback $out/bin/yallback
|
|
|
|
wrapProgram $out/bin/yallback --prefix PATH : ${lib.makeBinPath [ coreutils ]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Callbacks for YARA rule matches";
|
|
|
|
homepage = "https://github.com/abathur/yallback";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ abathur ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|