mecab: fix cross build (#373789)
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
fetchurl,
|
||||
mecab-nodic,
|
||||
buildPackages,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -16,8 +18,15 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
buildInputs = [ mecab-nodic ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-charset=utf8"
|
||||
"--with-dicdir=${placeholder "out"}"
|
||||
];
|
||||
configureFlags =
|
||||
[
|
||||
"--with-charset=utf8"
|
||||
"--with-dicdir=${placeholder "out"}"
|
||||
]
|
||||
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
"--with-mecab-config=${lib.getExe' buildPackages.mecab "mecab-config"}"
|
||||
]
|
||||
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
||||
"--with-mecab-config=${lib.getExe' (lib.getDev mecab-nodic) "mecab-config"}"
|
||||
];
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user