NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.34k stars 14.31k forks source link

Request: Support building `aflplusplus` on macOS #293605

Open madsmtm opened 8 months ago

madsmtm commented 8 months ago

Description of problem

AFL++ is supported on macOS, but it seems like the build steps have not yet been tweaked to work on macOS in Nixpkgs.

Is this something that would be doable?

Notify maintainers

@ris @mindavi

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.2.0, macOS 14.2.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.19.3`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Mindavi commented 8 months ago

I am not using darwin myself, but maybe I could get ask ofborg nicely whenever I have a clue where to start. At least qemu support must be disabled for the, I'm assuming.

The easiest way forward would be that you update the nixpkgs definition, but I'm not sure how you feel about that. I'm open to giving some support and having a look myself, but if my feedback loop is ofborg I'll probably have a hard time focusing on this long enough to get it over the finish line.

This week's pretty busy for me, but just post here for any questions/ideas. That makes it easiest to track progress on this.

Also note that ongoing maintenance will also be a challenge, but it'll probably not be that much work once this initial hurdle is taken.

linnnus commented 3 days ago

I would be willing to help out with an M1 Mac :^)

AFL++ is a pretty big project though, so I'd probably need a bit of guidance with regards to how the different components relate to each other. My initial attempt at an aarch64-darwin derivation is compiling but complains about a missing compiler-rt.o at runtime.

@Mindavi @madsmtm