Frida: Difference between revisions

imported>Mic92
improve automation of fhsuserenv
imported>Mic92
nobody like eggs
Line 37: Line 37:
       which
       which
       git
       git
       (python3.withPackages (p: [ p.setuptools ]))
       (python3.withPackages (p: [ p.setuptools p.wheel ]))
       nodejs
       nodejs
       perl
       perl
Line 51: Line 51:
       (cd frida-gum/bindings/gumjs && yarn install)
       (cd frida-gum/bindings/gumjs && yarn install)


       # for frida-python egg
       # for frida-python wheel
       export FRIDA_VERSION=$(git describe --tags)
       export FRIDA_VERSION=$(git describe --tags)
       export FRIDA_EXTENSION=$(realpath build/frida-linux-x86_64/${python3.sitePackages}/_frida.so)
       export FRIDA_EXTENSION=$(realpath build/frida-linux-x86_64/${python3.sitePackages}/_frida.so)
      export SOURCE_DATE_EPOCH="315532800"
     '';
     '';
   };
   };
Line 69: Line 70:
<syntaxHighlight lang=console>
<syntaxHighlight lang=console>
$ cd frida-python/src/
$ cd frida-python/src/
$ python setup.py bdist_egg
$ python setup.py bdist_wheel
$ easy_install dist/frida-*.egg
$ pip install dist/frida-*.whl
</syntaxHighlight>
</syntaxHighlight>


Mic92 has an [https://github.com/Mic92/nur-packages/blob/master/frida-python/default.nix expression] that provides a pre-compiled version of frida using the compiled egg as shown.
Mic92 has an [https://github.com/Mic92/nur-packages/blob/master/frida-python/default.nix expression] that provides a pre-compiled version of frida using the compiled wheel as shown.