File tree Expand file tree Collapse file tree
modules/dream2nix/WIP-python-pdm Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 pyproject = l . mkOption {
2121 type = t . path ;
2222 } ;
23+ useUvResolver = l . mkOption {
24+ type = t . bool ;
25+ default = false ;
26+ } ;
2327
2428 sourceSelector = import ./sourceSelectorOption.nix { inherit lib ; } ;
2529 } ;
Original file line number Diff line number Diff line change 66} : let
77 pdmConfig = config . deps . writeText "pdm-config.toml" ''
88 check_update = false
9- use_uv = true
9+ use_uv = ${
10+ if ( config . pdm . useUvResolver )
11+ then "true"
12+ else "false"
13+ }
1014 [python]
1115 use_venv = false
1216 '' ;
1519 #!${ config . deps . bash } /bin/bash
1620 set -Eeuo pipefail
1721
18- export PATH="$PATH:${ lib . makeBinPath [
19- config . deps . coreutils
20- config . deps . pdm
21- config . deps . yq
22- config . deps . uv
23- ] } "
22+ export PATH="$PATH:${ lib . makeBinPath ( [
23+ config . deps . coreutils
24+ config . deps . pdm
25+ config . deps . yq
26+ ]
27+ ++ lib . optionals config . pdm . useUvResolver [
28+ config . deps . uv
29+ ] ) } "
2430 export TMPDIR=$(${ config . deps . coreutils } /bin/mktemp -d)
2531 trap "${ config . deps . coreutils } /bin/chmod -R +w '$TMPDIR'; ${ config . deps . coreutils } /bin/rm -rf '$TMPDIR'" EXIT
2632
You can’t perform that action at this time.
0 commit comments