Nix-markdown-snippets

I created GitHub - fghibellini/nix-markdown-snippets: Nix utility to extract scripts from markdown fenced code blocks 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

Thanks!

1 Like

It is possible to redistribute functions with NUR also: GitHub - nix-community/NUR: Nix User Repository: User contributed nix packages [maintainer=@Mic92]

1 Like

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

1 Like