1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

xapianBindings: fix calls to sphinx-bulid in python bindings Makefile

This commit is contained in:
Jan Malakhovski 2016-09-04 14:11:15 +00:00
parent ad815f4206
commit 3ca74495d2

View file

@ -23,6 +23,17 @@ composableDerivation.composableDerivation {} rec {
name = "python"; name = "python";
enable = { enable = {
buildInputs = [ python sphinx ]; buildInputs = [ python sphinx ];
# Our `sphinx-build` binary is a shell wrapper around
# `sphinx-build` python code. Makefile tries to execute it
# using python2 and fails. Fixing that here.
patchPhase = ''
for a in python/Makefile* ; do
substituteInPlace $a \
--replace '$(PYTHON2) $(SPHINX_BUILD)' '$(SPHINX_BUILD)'
done
'';
# export same env vars as in pythonNew # export same env vars as in pythonNew
preConfigure = '' preConfigure = ''
export PYTHON_LIB=$out/lib/${python.libPrefix}/site-packages export PYTHON_LIB=$out/lib/${python.libPrefix}/site-packages