1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00

solvespace: fixup build with glibc-2.25

This commit is contained in:
Vladimír Čunát 2017-02-22 16:45:08 +01:00
parent 5f420c1ff5
commit 7ccaa9e652
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -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;