@@ -9,18 +9,18 @@ python3Packages.buildPythonApplication rec {
99 sha256 = "178dmrp0mza5gqjiqgk6dqs0c10s0c517pk6k9pjbam86vf47a1p";
1010 };
1111
12− nativeBuildInputs = [ texinfo ];
13−
14− # I couldn't figure out how to pass the proper parameter to disable pdf generation, so we
15− # use sed to change the default
16− preBuild = ''
17− sed -i -r 's/pdf\s+= True/pdf = False/g' setup.py
12+ # I'm sure there is a better way to pass these parameters to the build script...
13+ postPatch = ''
14+ substituteInPlace setup.py \
15+ --replace 'pdf = True' 'pdf = False' \
16+ --replace '$base/man' 'share/man' \
17+ --replace '$base/info' 'share/info' \
18+ --replace '$base/share' 'share'
1819 '';
1920
20− # the check scripts forces python2. If we need to use python3 at some point, we should use
21− # the correct python
21+ nativeBuildInputs = [ texinfo ];
22+
2223 checkPhase = ''
23− sed -i 's|python=python3|python=${python3Packages.python.interpreter}|' tests/run.sh
2424 cd tests && ${stdenv.shell} run.sh
2525 '';
2626