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 jq
mkShell mkShell
pdm pdm
uv
runCommand runCommand
stdenvNoCC stdenvNoCC
stdenv stdenv

View File

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