From 2e1517405274568b4a814fd0f500adf3ce8f743c Mon Sep 17 00:00:00 2001 From: alsaiduq-lab Date: Wed, 21 May 2025 11:20:43 -0600 Subject: [PATCH] fixed UV --- modules/python.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/python.nix b/modules/python.nix index 1f28e83..d63d450 100644 --- a/modules/python.nix +++ b/modules/python.nix @@ -44,6 +44,16 @@ --prefix LD_LIBRARY_PATH : "${gccLibPath}:${nvidiaLibPath}:${cudaLibPath}" ''; }; + + custom-UV = pkgs.symlinkJoin { + name = "uv"; + paths = [pkgs.uv]; + buildInputs = [pkgs.makeWrapper]; + postBuild = '' + wrapProgram $out/bin/uv \ + --prefix LD_LIBRARY_PATH : "${gccLibPath}:${nvidiaLibPath}:${cudaLibPath}" + ''; + }; in { options.python = { enable = lib.mkEnableOption "System Python Environment"; @@ -52,7 +62,7 @@ in { environment.systemPackages = with pkgs; [ pythonEnv isort - uv + custom-UV git stdenv.cc.cc.lib python311