Nix Dynamic Derivations: A practical application

Dynamic derivations are still so cool :stuck_out_tongue:

11 Likes

You can check out the tool here: GitHub - fzakaria/MakeNix: A demonstration of how you can leverage Nix dynamic derivations for C/C++ Makefile projects

1 Like

Thanks for the informative blog posts @fzakaria.

When you say:

Once again, before we begin, if you want to play with it, it’s important you use nix@d904921.
[…]
Here, there be dragons :dragon_face:.

Does that mean we should use exactly commit d904921, or are later revisions of the master branch also suitable?

Right now it needs to be that exact commit.

The dynamic derivations commit was backed out of master due to some bug.
That commit has it included.

@Ericson2314 might have more up to date info if it’s back in master.

I haven’t tested it with nix at all, but current lix seems to handle it fine.
Though I don’t know enough about what https://github.com/NixOS/nix/pull/12591 was reverting to comment further.