Hi,
I would like to know if there are any approaches to make a custom written package (not on nixpkgs) available for system/user wide reuse. The question is not about how to write the derivation and include in `environment.systemPackages`/`home.packages` but how to reuse later in a different derivation without much effort.
That is:
- write a derivation that is compatible with `callPackage`
- make that available dynamically (without changing the `nixosSystem`)
- reuse in a separate `default.nix`/`shell.nix`
I think this is more about a impure approach that I want to know if anyone has any good ideas for developer experience.I know some things that might be useful (or not) such as
- the `NIX_PATH` env var (is it useful?)
- the `~/.config/nixpkgs/overlays.nix` file
Any ideas or workflow examples would be appreciated.
Bonus question: Can the same be done with simple function like an extra lib?