I created which I think shows a very interesting usecase for Nix tests that I don’t see propagated very often.

I have a few questions though:

  1. is an overlay a good way to redistribute such functions? I understand Nix still doesn’t have a package system, but I don’t think it makes much sense to try to include the above function directly in Nixpkgs.
  2. are there similar initiatives? I was wondering if there already exists something that tries to include documentation in tests - I didn’t find anything specific to Nix.
  3. code review - even though it works, the code feels very hacky, and I’m not sure it’s the best approach, if anyone has any opinions they would be very welcome


1 Like

It is possible to redistribute functions with NUR also:

1 Like

This is awesome!
Thank you for your work on this.

1 Like