From 9559cea14a91ffa63f5f90d7719b2c56233517f2 Mon Sep 17 00:00:00 2001 From: annalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com> Date: Wed, 6 Dec 2023 05:09:21 +0000 Subject: [PATCH] catdvi: fix generated code in configure script; fix darwin add an int to generated main function to fix implicit int error --- pkgs/tools/typesetting/tex/catdvi/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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";