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:
parent
ad815f4206
commit
3ca74495d2
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue