Python: Difference between revisions
Tag: Undo |
|||
| Line 159: | Line 159: | ||
}; | }; | ||
# https://github.com/nix-community/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld | # https://github.com/nix-community/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld | ||
environment.systemPackages = [ | environment.systemPackages = [ | ||
(pkgs.writeShellScriptBin "python" '' | (pkgs.writeShellScriptBin "python" '' | ||
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH | export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH | ||
exec ${pkgs. | exec ${pkgs.python3}/bin/python "$@" | ||
'') | '') | ||
]; | ]; | ||
# another dangerous | # another (dangerous) solution | ||
# environment.systemPackages = with pkgs; [ python3 ]; | |||
# environment.systemPackages = with pkgs; [ | |||
# programs.bash = { | # programs.bash = { | ||
# enable = true; | # enable = true; | ||