nix-community / dream2nix

Simplified nix packaging for various programming language ecosystems [maintainer=@DavHau]
https://dream2nix.dev
MIT License
1.03k stars 126 forks source link

refine flake-parts interface (translators) #424

Open DavHau opened 1 year ago

DavHau commented 1 year ago

Currently the translator field accepts any string, and also there is no documentation for the translator options which differ between the individual translators.

I think in order to have nice documentation for the translators, they each need to have their own options like:

{
  perSystem.dream2nix.inputs.<name>.projects.<name>.translator = "package-lock";
  perSystem.dream2nix.inputs.<name>.projects.<name>.translatorArgs.package-lock.nodejs = 18;
}

While touching the translators, we should probably also:

DavHau commented 1 year ago

I started implementing this via https://github.com/nix-community/dream2nix/pull/425. So far I only moved the package-lock translator as an example