rubber: put man and info pages in the right directory
This commit is contained in:
parent
48148913b6
commit
02de51f120
@ -9,18 +9,18 @@ python3Packages.buildPythonApplication rec {
|
|||||||
sha256 = "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p";
|
sha256 = "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ texinfo ];
|
# I'm sure there is a better way to pass these parameters to the build script...
|
||||||
|
postPatch = ''
|
||||||
# I couldn't figure out how to pass the proper parameter to disable pdf generation, so we
|
substituteInPlace setup.py \
|
||||||
# use sed to change the default
|
--replace 'pdf = True' 'pdf = False' \
|
||||||
preBuild = ''
|
--replace '$base/man' 'share/man' \
|
||||||
sed -i -r 's/pdf\s+= True/pdf = False/g' setup.py
|
--replace '$base/info' 'share/info' \
|
||||||
|
--replace '$base/share' 'share'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# the check scripts forces python2. If we need to use python3 at some point, we should use
|
nativeBuildInputs = [ texinfo ];
|
||||||
# the correct python
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
sed -i 's|python=python3|python=${python3Packages.python.interpreter}|' tests/run.sh
|
|
||||||
cd tests && ${stdenv.shell} run.sh
|
cd tests && ${stdenv.shell} run.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user