mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 14:10:33 +03:00
mecab: fix cross build
This commit is contained in:
parent
d9e9853753
commit
c0e246d9a9
1 changed files with 13 additions and 4 deletions
|
@ -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"}"
|
||||
];
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue