From cadc9a03a726face1390269f88d91a7d2b29da2c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= <bjorn.forsman@gmail.com>
Date: Sun, 8 Sep 2013 22:07:20 +0200
Subject: [PATCH] recursive-pth-loader: fix python path

This should work for both python2 and python3.
---
 .../development/python-modules/recursive-pth-loader/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/development/python-modules/recursive-pth-loader/default.nix b/pkgs/development/python-modules/recursive-pth-loader/default.nix
index e281d69c98ae..9a17e722679f 100644
--- a/pkgs/development/python-modules/recursive-pth-loader/default.nix
+++ b/pkgs/development/python-modules/recursive-pth-loader/default.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
 
   patchPhase = "cat ${./sitecustomize.py} > sitecustomize.py";
 
-  buildPhase = "python -m compileall .";
+  buildPhase = "${python}/bin/${python.executable} -m compileall .";
 
   installPhase =
     ''