nix: work around lack of PYTHON environment variable in conda build

This commit is contained in:
Sebastien Bourdeauducq 2019-02-08 15:50:24 +08:00
parent 744ef03fa1
commit 306d9cf5d0
1 changed files with 5 additions and 1 deletions

View File

@ -54,8 +54,12 @@ in stdenv.mkDerivation {
cat << EOF > clobber.yaml cat << EOF > clobber.yaml
requirements: requirements:
build: build:
build:
script_env:
- PYTHON
EOF EOF
mkdir $out mkdir $out
${condaBuilderEnv}/bin/conda-builder-env -c "conda build --clobber-file clobber.yaml --no-anaconda-upload --no-test --output-folder $out $src/conda/artiq" ${condaBuilderEnv}/bin/conda-builder-env -c "PYTHON=python conda build --clobber-file clobber.yaml --no-anaconda-upload --no-test --output-folder $out $src/conda/artiq"
''; '';
} }