summary refs log tree commit diff
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-07-18 16:36:15 -0500
committerTuomas Tynkkynen <tuomas.tynkkynen@iki.fi>2018-07-19 02:11:00 +0300
commit0a46f8c19897846db3d9fd2aa858b212a0f2a59d (patch)
tree19dfc8090c5a2694cd5bc585e5ac484a090f7c54
parentdc29207e93f5128f373112cf59052d47d881515a (diff)
downloadnixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar.gz
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar.bz2
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar.lz
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar.xz
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.tar.zst
nixpkgs-0a46f8c19897846db3d9fd2aa858b212a0f2a59d.zip
diffoscope: fix manpage generation
Was already broken, not sure for how long.

Without this the tool fails to run,
so help2man ends up producing an empty file.
-rw-r--r--pkgs/tools/misc/diffoscope/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/misc/diffoscope/default.nix b/pkgs/tools/misc/diffoscope/default.nix
index 7c17c0e7481..73b7f2272cd 100644
--- a/pkgs/tools/misc/diffoscope/default.nix
+++ b/pkgs/tools/misc/diffoscope/default.nix
@@ -23,6 +23,9 @@ python3Packages.buildPythonApplication rec {
   postPatch = ''
     # Upstream doesn't provide a PKG-INFO file
     sed -i setup.py -e "/'rpm-python',/d"
+
+    # When generating manpage, use the installed version
+    substituteInPlace doc/Makefile --replace "../bin" "$out/bin"
   '';
 
   nativeBuildInputs = [ docutils help2man ];