Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

frida: build from source #17

Open
milahu opened this issue Dec 9, 2023 · 1 comment
Open

frida: build from source #17

milahu opened this issue Dec 9, 2023 · 1 comment

Comments

@milahu
Copy link
Owner

milahu commented Dec 9, 2023

currently nixpkgs has a binary build of frida
NixOS#231229

probably based on nur.repos.dschrempf.frida-tools
https://github.com/dschrempf/nur-packages/blob/master/pkgs/hacking/frida-tools/default.nix
https://github.com/dschrempf/nur-packages/blob/master/pkgs/hacking/frida-python/default.nix

which is based on nur.repos.genesis.frida-tools
https://github.com/bignaux/nur-packages/blob/master/pkgs/frida-tools/default.nix
https://github.com/bignaux/nur-packages/blob/master/pkgs/frida-compile/default.nix
https://github.com/bignaux/nur-packages/blob/master/pkgs/frida-agent-example/default.nix

build frida from source

building frida from source is complex
because frida uses many patched dependencies
and the whole build process is controlled by makefiles

my draft has about 200 commits, maybe can be squashed to 20 commits
https://github.com/milahu/nixpkgs/tree/frida-init

i got the build working, but the python module failed to load
because it failed to load the _frida.so library...
i spent many hours on that problem alone, but i found no fix

you better have a fast build server, or this will take "forever"
the most compile-time is needed for frida-v8
pkgs/development/tools/analysis/frida/v8/default.nix

also, i wanted to write an updater, which parses the pinned versions from makefiles
but i got stuck, looking for a makefile parser
see also
pkgs/development/tools/analysis/frida/update.sh

cc @lf- via NixOS#254047
(i just found that by accident, i dont receive mentions since im banned from nixos)

related

@lf-
Copy link

lf- commented Dec 9, 2023

Oh excellent work. I can try to upstream it piece by piece, first, just enough to package my project clipper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants