From 63bcd0788883dc45fb5bcd68c6f4e89c1c2087ae Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Fri, 4 Jan 2019 12:31:42 +0100 Subject: python: add isPy2 attribute to passthru Some packages relied on it. For consistency, also introduce isPy3 (which is the same as isPy3k). --- pkgs/servers/uwsgi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/servers/uwsgi') diff --git a/pkgs/servers/uwsgi/default.nix b/pkgs/servers/uwsgi/default.nix index 074b19724d2..91053019ac1 100644 --- a/pkgs/servers/uwsgi/default.nix +++ b/pkgs/servers/uwsgi/default.nix @@ -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 ]; -- cgit 1.4.1