Adds uv resolver for pdm

This commit is contained in:
purepani 2024-10-25 21:57:33 -05:00
parent 1a5e625de7
commit 993ca8de94
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ in {
jq
mkShell
pdm
uv
runCommand
stdenvNoCC
stdenv

View File

@ -6,6 +6,7 @@
}: let
pdmConfig = config.deps.writeText "pdm-config.toml" ''
check_update = false
use_uv = true
[python]
use_venv = false
'';
@ -18,6 +19,7 @@
config.deps.coreutils
config.deps.pdm
config.deps.yq
config.deps.uv
]}"
export TMPDIR=$(${config.deps.coreutils}/bin/mktemp -d)
trap "${config.deps.coreutils}/bin/chmod -R +w '$TMPDIR'; ${config.deps.coreutils}/bin/rm -rf '$TMPDIR'" EXIT