kakasi: avoid an implicit declaration of exit (#368909)

This commit is contained in:
Emily
2024-12-29 18:05:06 +00:00
committed by GitHub
+11 -1
View File
@@ -2,6 +2,8 @@
lib,
stdenv,
fetchurl,
fetchpatch,
autoreconfHook,
libiconv,
}:
@@ -9,6 +11,7 @@ stdenv.mkDerivation rec {
pname = "kakasi";
version = "2.3.6";
nativeBuildInputs = [ autoreconfHook ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
meta = with lib; {
@@ -28,10 +31,17 @@ stdenv.mkDerivation rec {
sha256 = "1qry3xqb83pjgxp3my8b1sy77z4f0893h73ldrvdaky70cdppr9f";
};
patches = [
(fetchpatch {
url = "https://src.fedoraproject.org/rpms/kakasi/raw/4756771/f/kakasi-configure-c99.patch";
hash = "sha256-XPIp/+AR6K84lv606aRHPQwia/1K3rt/7KSo0V0ZQ5o=";
})
];
postPatch = ''
for a in tests/kakasi-* ; do
substituteInPlace $a \
--replace "/bin/echo" echo
--replace-quiet "/bin/echo" echo
done
'';