python: provide better message if python interpreter is not supported

This commit is contained in:
Domen Kožar 2014-08-27 15:52:44 +02:00
parent e50deca440
commit 62345fee55

View File

@ -49,10 +49,9 @@
, ... } @ attrs:
assert (!disabled);
# 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;
name = namePrefix + name;