about summary refs log tree commit diff
path: root/pkgs/development/libraries/fltk
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2015-05-28 13:14:37 +0200
committerVladimír Čunát <vcunat@gmail.com>2015-05-28 13:16:02 +0200
commit6cc8869f383a242c4c995e9c158cc03d5b2c5170 (patch)
treec7160ce87af3debe4f244185cf323f77c2175a2a /pkgs/development/libraries/fltk
parentadea54614d848c8a85e700885ec95a93402bd72b (diff)
downloadnixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar.gz
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar.bz2
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar.lz
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar.xz
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.tar.zst
nixlib-6cc8869f383a242c4c995e9c158cc03d5b2c5170.zip
fltk13: fix a bug preventing use in octave
Fixes #8007 (together with the parent commit).
Diffstat (limited to 'pkgs/development/libraries/fltk')
-rw-r--r--pkgs/development/libraries/fltk/fltk13.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/fltk/fltk13.nix b/pkgs/development/libraries/fltk/fltk13.nix
index 262ef8b865e1..a5b65f09e613 100644
--- a/pkgs/development/libraries/fltk/fltk13.nix
+++ b/pkgs/development/libraries/fltk/fltk13.nix
@@ -15,6 +15,12 @@ composableDerivation.composableDerivation {} {
     sha256 = "15qd7lkz5d5ynz70xhxhigpz3wns39v9xcf7ggkl0792syc8sfgq";
   };
 
+  # http://www.fltk.org/str.php?L3156
+  postPatch = ''
+    substituteInPlace FL/x.H \
+      --replace 'class Fl_XFont_On_Demand' 'class FL_EXPORT Fl_XFont_On_Demand'
+  '';
+
   propagatedBuildInputs = [ x11 inputproto libXi freeglut ];
 
   enableParallelBilding = true;