2024-01-23 19:13:42 -06:00
|
|
|
{
|
2024-05-23 12:45:16 -05:00
|
|
|
inputs,
|
2024-01-23 19:13:42 -06:00
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
2024-05-06 14:32:00 -05:00
|
|
|
}:
|
|
|
|
let
|
2024-02-27 10:27:41 -06:00
|
|
|
inherit (lib) mkIfIn;
|
2024-02-27 10:11:44 -06:00
|
|
|
cfg = config.oizys.languages;
|
2024-06-25 11:39:41 -05:00
|
|
|
|
|
|
|
python = pkgs.python3.withPackages (ps: with ps; [ pip ]);
|
|
|
|
pixi = inputs.pixi.packages.${pkgs.system}.default;
|
2024-05-06 14:32:00 -05:00
|
|
|
in
|
|
|
|
{
|
2024-02-27 10:27:41 -06:00
|
|
|
config = mkIfIn "python" cfg {
|
2024-06-25 11:39:41 -05:00
|
|
|
environment.systemPackages = [
|
|
|
|
# https://github.com/Mic92/nix-ld?tab=readme-ov-file#my-pythonnodejsrubyinterpreter-libraries-do-not-find-the-libraries-configured-by-nix-ld
|
|
|
|
(pkgs.writeShellScriptBin "python" ''
|
|
|
|
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
|
|
|
exec ${python}/bin/python "$@"
|
|
|
|
'')
|
2024-01-23 15:36:52 -06:00
|
|
|
|
2024-06-25 11:39:41 -05:00
|
|
|
(pkgs.writeShellScriptBin "python3" ''
|
|
|
|
export LD_LIBRARY_PATH=$NIX_LD_LIBRARY_PATH
|
|
|
|
exec ${python}/bin/python "$@"
|
|
|
|
'')
|
2024-01-23 15:36:52 -06:00
|
|
|
|
2024-06-25 11:39:41 -05:00
|
|
|
pixi
|
|
|
|
pkgs.micromamba
|
|
|
|
];
|
2024-01-23 19:13:42 -06:00
|
|
|
};
|
2024-01-23 11:51:13 -06:00
|
|
|
}
|