Creates a Nix expression with shared logic for R and Python file reading.
Arguments
- out_name
Character, the name of the derivation as a string.
- path
Character, the file path (URL or local) or folder path.
- nix_env
Character, path to the Nix environment file.
- build_phase
Character, the language-specific build phase script.
- type
Character, the type of derivation ("rxp_r" or "rxp_py").
- derivation_func
Character, the Nix derivation function ("makeRDerivation" or "makePyDerivation").
- library_ext
Character, the library file extension ("R" or "py").