ttfautohint: fix build on darwin (#440348)

Changed files
+2 -6
pkgs
tools
misc
ttfautohint
+2 -6
pkgs/tools/misc/ttfautohint/default.nix
···
echo "${finalAttrs.version}" > VERSION
''
+ lib.optionalString stdenv.hostPlatform.isDarwin ''
-
echo '#define VERSION "${finalAttrs.version}"' > version
+
substituteInPlace configure --replace-fail "macx-g++" "macx-clang"
'';
-
postAutoreconf = ''
-
substituteInPlace configure --replace-fail "macx-g++" "macx-clang"
-
'';
-
nativeBuildInputs = [
pkg-config
-
autoreconfHook
perl
]
+
++ lib.optionals stdenv.hostPlatform.isLinux [ autoreconfHook ]
++ lib.optionals enableGUI [ libsForQt5.qt5.wrapQtAppsHook ];
buildInputs = [