about summary refs log tree commit diff
path: root/pkgs/tools/graphics/ploticus
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-03-01 08:41:44 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-03-01 08:42:35 +0100
commit64d4bfd1397b48236199a660c49ad60f13188365 (patch)
treef81645ddac362ef0f71d881f0e58922463af0042 /pkgs/tools/graphics/ploticus
parent5c89ab7cb61f4a4f6879acc701a10ee577d6c1ed (diff)
ploticus: fixup a manual-page symlink
With new man compression this caused a build error.
Diffstat (limited to 'pkgs/tools/graphics/ploticus')
-rw-r--r--pkgs/tools/graphics/ploticus/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/ploticus/default.nix b/pkgs/tools/graphics/ploticus/default.nix
index b855410f37f23..d0e6785787230 100644
--- a/pkgs/tools/graphics/ploticus/default.nix
+++ b/pkgs/tools/graphics/ploticus/default.nix
@@ -15,6 +15,12 @@ stdenv.mkDerivation {
 
   patches = [ ./ploticus-install.patch ];
 
+  # Make the symlink relative instead of absolute.
+  # Otherwise it breaks when auto-moved to $out/share.
+  preFixup = ''
+    ln -sf pl.1 "$out"/man/man1/ploticus.1
+  '';
+
   meta = with stdenv.lib; {
     description = "A non-interactive software package for producing plots and charts";
     longDescription = ''Ploticus is a free, GPL'd, non-interactive