Merge pull request #231229 from s1341/init_frida

frida-tools: init at 12.1.2
This commit is contained in:
adisbladis 2023-06-09 17:38:21 +12:00 committed by GitHub
commit e1353e780e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 68 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib, stdenv, fetchurl, fetchPypi, buildPythonPackage, typing-extensions }:
let
version = "16.0.19";
devkit = fetchurl {
url = "https://github.com/frida/frida/releases/download/${version}/frida-core-devkit-${version}-linux-x86_64.tar.xz";
hash = "sha256-yNXNqv8eCbpdQKFShpAh6rUCEuItrOSNNLOjESimPdk=";
};
in buildPythonPackage rec {
pname = "frida-python";
inherit version;
src = fetchPypi {
pname = "frida";
inherit version;
hash = "sha256-rikIjjn9wA8VL/St/2JJTcueimn+q/URbt9lw/+nalY=";
};
postPatch = ''
mkdir assets
pushd assets
tar xvf ${devkit}
export FRIDA_CORE_DEVKIT=$PWD
popd
'';
propagatedBuildInputs = [ typing-extensions ];
pythonImportsCheck = [ "frida" ];
passthru = { inherit devkit; };
meta = {
description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (Python bindings)";
homepage = "https://www.frida.re";
license = lib.licenses.wxWindows;
maintainers = with lib.maintainers; [ s1341 ];
platforms = [ "x86_64-linux" ];
};
}

View file

@ -0,0 +1,25 @@
{ lib, python3 }:
python3.pkgs.buildPythonApplication rec {
pname = "frida-tools";
version = "12.1.2";
src = python3.pkgs.fetchPypi {
inherit pname version;
hash = "sha256-9SlDyp1fLOzLqu6sxVqY2jwEzQjrnbzfQXIRoyviPJY=";
};
propagatedBuildInputs = with python3.pkgs; [
pygments
prompt_toolkit
colorama
frida-python
];
meta = {
description = "Dynamic instrumentation toolkit for developers, reverse-engineers, and security researchers (client tools)";
homepage = "https://www.frida.re/";
maintainers = with lib.maintainers; [ s1341 ];
license = lib.licenses.wxWindows;
};
}

View file

@ -581,6 +581,8 @@ with pkgs;
frece = callPackage ../development/tools/frece { };
frida-tools = callPackage ../tools/security/frida-tools { };
frink = callPackage ../development/tools/frink { };
frugal = callPackage ../development/tools/frugal { };

View file

@ -3845,6 +3845,8 @@ self: super: with self; {
freezegun = callPackage ../development/python-modules/freezegun { };
frida-python = callPackage ../development/python-modules/frida-python { };
frigidaire = callPackage ../development/python-modules/frigidaire { };
frilouz = callPackage ../development/python-modules/frilouz { };