mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-12-22 22:11:50 +03:00
Adds uv resolver for pdm
This commit is contained in:
parent
1a5e625de7
commit
993ca8de94
@ -78,6 +78,7 @@ in {
|
|||||||
jq
|
jq
|
||||||
mkShell
|
mkShell
|
||||||
pdm
|
pdm
|
||||||
|
uv
|
||||||
runCommand
|
runCommand
|
||||||
stdenvNoCC
|
stdenvNoCC
|
||||||
stdenv
|
stdenv
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user