Skip to content

Commit

Permalink
Adds uv resolver for pdm
Browse files Browse the repository at this point in the history
  • Loading branch information
purepani committed Oct 26, 2024
1 parent 1a5e625 commit 993ca8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/dream2nix/WIP-python-pdm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ in {
jq
mkShell
pdm
uv
runCommand
stdenvNoCC
stdenv
Expand Down
2 changes: 2 additions & 0 deletions modules/dream2nix/WIP-python-pdm/lock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}: let
pdmConfig = config.deps.writeText "pdm-config.toml" ''
check_update = false
use_uv = true
[python]
use_venv = false
'';
Expand All @@ -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
Expand Down

0 comments on commit 993ca8d

Please sign in to comment.