idris-lang / Idris2

A purely functional programming language with first class types
https://idris-lang.org/
Other
2.46k stars 368 forks source link

better nix-shell support via shellHook #3243

Closed mattpolzin closed 3 months ago

mattpolzin commented 3 months ago

Description

A much less substantial refactor than the git diff would suggest. I am mostly just moving the derivation creation up to where the shared attributes were created; this allows using the newer function form of derivation argument and accessing finalAttrs to populate a shellHook in the shared derivation. The shell hook exposes the IDRIS2_PACKAGE_PATH in dev shells which is necessary for a functional dev environment.

This is not a breaking change.

Should this change go in the CHANGELOG?