about summary refs log tree commit diff
diff options
context:
space:
mode:
authorpaparodeo <170618376+paparodeo@users.noreply.github.com>2024-05-26 03:24:15 +0000
committerpaparodeo <170618376+paparodeo@users.noreply.github.com>2024-05-26 03:41:29 +0000
commit61e89d1002b268f1c0edf23b7d0255fd47bc7e12 (patch)
treebda1c0a8b3a4ed6c6c0929f6c5fe4dcd328b6da7
parentda028a293679fe4444382a0e66817bfb0795becc (diff)
tetex: fix darwin build
specify -std=gnu89 and -std=c++03 to fix the configure script and build.
the tarballs were last updated in 2006 and the package is no longer
maintain so use standards from the era.
-rw-r--r--pkgs/tools/typesetting/tex/tetex/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/tetex/default.nix b/pkgs/tools/typesetting/tex/tetex/default.nix
index d153864172187..4c3fba31945a9 100644
--- a/pkgs/tools/typesetting/tex/tetex/default.nix
+++ b/pkgs/tools/typesetting/tex/tetex/default.nix
@@ -31,6 +31,11 @@ stdenv.mkDerivation rec {
 
   setupHook = ./setup-hook.sh;
 
+  env = {
+    CFLAGS = "-std=gnu89";
+    CXXFLAGS = "-std=c++03";
+  };
+
   configureFlags =
     [ "--disable-multiplatform" "--without-x11" "--without-xdvik"
       "--without-oxdvik" "--without-texinfo" "--without-texi2html"