mecab: add libiconv as buildInputs

#257480 added utf8 support but mecab depends on libiconv to convert between
charsets. Thus, on MacOS it doesn't works
This commit is contained in:
Duc Nghiem-Xuan 2023-10-24 17:39:04 +09:00
parent 8efd5d1e28
commit 725d62079c
3 changed files with 7 additions and 5 deletions

View File

@ -1,4 +1,4 @@
{ fetchurl }:
{ fetchurl, libiconv }:
finalAttrs: {
version = "0.996";
@ -9,6 +9,8 @@ finalAttrs: {
hash = "sha256-4HMyV4MTW3LmZhRceBu0j62lg9UiT7JJD7bBQDumnFk=";
};
buildInputs = [ libiconv ];
configureFlags = [
"--with-charset=utf8"
];

View File

@ -1,7 +1,7 @@
{ lib, stdenv, fetchurl, mecab-ipadic }:
{ lib, stdenv, fetchurl, mecab-ipadic, libiconv }:
let
mecab-base = import ./base.nix { inherit fetchurl; };
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
in
stdenv.mkDerivation (finalAttrs: ((mecab-base finalAttrs) // {
pname = "mecab";

View File

@ -1,7 +1,7 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, libiconv }:
let
mecab-base = import ./base.nix { inherit fetchurl; };
mecab-base = import ./base.nix { inherit fetchurl libiconv; };
in
stdenv.mkDerivation (finalAttrs: ((mecab-base finalAttrs) // {
pname = "mecab-nodic";