about summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-12-06 05:09:21 +0000
committerannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-12-06 05:09:30 +0000
commit9559cea14a91ffa63f5f90d7719b2c56233517f2 (patch)
tree8372d37b5487b94c45f83e1984df5aa97a9bfa75 /pkgs/tools/typesetting
parent0c6d8c783336a59f4c59d4a6daed6ab269c4b361 (diff)
downloadnixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar.gz
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar.bz2
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar.lz
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar.xz
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.tar.zst
nixlib-9559cea14a91ffa63f5f90d7719b2c56233517f2.zip
catdvi: fix generated code in configure script; fix darwin
add an int to generated main function to fix implicit int error
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tex/catdvi/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tex/catdvi/default.nix b/pkgs/tools/typesetting/tex/catdvi/default.nix
index 924aa57ece99..1958a2f4c073 100644
--- a/pkgs/tools/typesetting/tex/catdvi/default.nix
+++ b/pkgs/tools/typesetting/tex/catdvi/default.nix
@@ -28,6 +28,11 @@ stdenv.mkDerivation (finalAttrs: {
     })
   ];
 
+  # fix implicit-int compile error in test code used in configure script
+  postPatch = ''
+    sed -i 's/^main()/int main()/' configure
+  '';
+
   hardeningDisable = [ "format" ];
 
   outputs = [ "out" ] ++ lib.optional (with stdenv; buildPlatform.canExecute hostPlatform) "dev";