Closed Uthar closed 2 years ago
currently that's done manually in nix code (flattenedDeps)
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
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
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
merged in https://github.com/Uthar/nix-cl/commit/872202da50ddc6742ab75231ed87459cf4167c59
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