Uthar / nix-cl

Utilities for packaging ASDF systems using Nix
BSD 2-Clause "Simplified" License
15 stars 6 forks source link

use a setup hook to set source registry and output translations #22

Closed Uthar closed 2 years ago

Uthar commented 2 years ago

currently that's done manually in nix code (flattenedDeps)

normally, there are setup hooks in nixpkgs that e.g. add all jars from /share/java to the class path.

maybe a similar mechanism with share/lisp could be used to reduce the amount of hackery in nix code

Uthar commented 2 years ago

hmm... nixpkgs python packages do it similarly to us, with the recursing to generate PYTHONPATH...

https://github.com/NixOS/nixpkgs/blob/30912ed67f9b1115565009a5853e923b79f2e0ff/pkgs/development/interpreters/python/python-packages-base.nix#L54-L56

Uthar commented 2 years ago

though they say pythonPath parameter is deprecated in favor of propagatedBuildInputs

https://github.com/NixOS/nixpkgs/blob/30912ed67f9b1115565009a5853e923b79f2e0ff/pkgs/development/interpreters/python/mk-python-derivation.nix#L47-L48

Uthar commented 2 years ago

merged in https://github.com/Uthar/nix-cl/commit/872202da50ddc6742ab75231ed87459cf4167c59