python: provide better message if python interpreter is not supported
This commit is contained in:
parent
e50deca440
commit
62345fee55
@ -49,10 +49,9 @@
|
|||||||
|
|
||||||
, ... } @ attrs:
|
, ... } @ attrs:
|
||||||
|
|
||||||
assert (!disabled);
|
|
||||||
|
|
||||||
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
|
# Keep extra attributes from `attrs`, e.g., `patchPhase', etc.
|
||||||
python.stdenv.mkDerivation (attrs // {
|
if disabled then throw "${name} not supported for interpreter ${python.executable}" else python.stdenv.mkDerivation (attrs // {
|
||||||
inherit doCheck;
|
inherit doCheck;
|
||||||
|
|
||||||
name = namePrefix + name;
|
name = namePrefix + name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user