python: add isPy2 attribute to passthru

Some packages relied on it. For consistency, also introduce isPy3 (which
is the same as isPy3k).
This commit is contained in:
Frederik Rietdijk
2019-01-04 12:31:42 +01:00
parent 29ee864e93
commit 63bcd07888
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
, ruby, php-embed, mysql
}:
let pythonPlugin = pkg : lib.nameValuePair "python${if pkg ? isPy2 then "2" else "3"}" {
let pythonPlugin = pkg : lib.nameValuePair "python${if pkg.isPy2 then "2" else "3"}" {
interpreter = pkg.interpreter;
path = "plugins/python";
inputs = [ pkg ncurses ];