about summary refs log tree commit diff
path: root/pkgs/applications/graphics/solvespace/default.nix
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2017-02-22 16:45:08 +0100
committerVladimír Čunát <vcunat@gmail.com>2017-02-22 16:45:08 +0100
commit7ccaa9e652764f5652d071a46845296f2a8b64f4 (patch)
tree89b92e468f3e6e5ef2cf7a064288d34a5d0f8d6f /pkgs/applications/graphics/solvespace/default.nix
parent5f420c1ff583403d12f6af8905c9953f962dbdba (diff)
solvespace: fixup build with glibc-2.25
Diffstat (limited to 'pkgs/applications/graphics/solvespace/default.nix')
-rw-r--r--pkgs/applications/graphics/solvespace/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/solvespace/default.nix b/pkgs/applications/graphics/solvespace/default.nix
index d450018650239..ab5a81d6add6c 100644
--- a/pkgs/applications/graphics/solvespace/default.nix
+++ b/pkgs/applications/graphics/solvespace/default.nix
@@ -9,6 +9,12 @@ stdenv.mkDerivation {
     rev = "e587d0e";
   };
 
+  # Fixup build after glibc-2.25.
+  postPatch = ''
+    sed 's/\<CHAR_WIDTH\>/CHARWIDTH/g' \
+      -i src/{fltk/fltkmain.cpp,glhelper.cpp,textwin.cpp,toolbar.cpp,ui.h}
+  '';
+
   # e587d0e fails with undefined reference errors if make is called
   # twice. Ugly workaround: Build while installing.
   dontBuild = true;