Platonic-Systems / mission-control

A `flake-parts` module for your Nix devshell scripts
https://community.flake.parts/mission-control
MIT License
76 stars 11 forks source link

flake-module.nix: Identify module with _file #11

Closed roberth closed 1 year ago

roberth commented 1 year ago

The documentation tooling needs locations in order to split the docs into pages.

This means that the module system needs to see a file name at some point, which usually happens by importing a path. This flake-module.nix is technically not a module, but a function to an anonymous module. Hence, we need to remind the module system of the location.