File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed
Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 11{
2+ lib ,
23 stdenv ,
34 fetchurl ,
45 mecab-nodic ,
6+ buildPackages ,
57} :
68
79stdenv . mkDerivation ( finalAttrs : {
@@ -16,8 +18,15 @@ stdenv.mkDerivation (finalAttrs: {
1618
1719 buildInputs = [ mecab-nodic ] ;
1820
19- configureFlags = [
20- "--with-charset=utf8"
21- "--with-dicdir=${ placeholder "out" } "
22- ] ;
21+ configureFlags =
22+ [
23+ "--with-charset=utf8"
24+ "--with-dicdir=${ placeholder "out" } "
25+ ]
26+ ++ lib . optionals ( ! stdenv . buildPlatform . canExecute stdenv . hostPlatform ) [
27+ "--with-mecab-config=${ lib . getExe' buildPackages . mecab "mecab-config" } "
28+ ]
29+ ++ lib . optionals ( stdenv . buildPlatform . canExecute stdenv . hostPlatform ) [
30+ "--with-mecab-config=${ lib . getExe' ( lib . getDev mecab-nodic ) "mecab-config" } "
31+ ] ;
2332} )
You can’t perform that action at this time.
0 commit comments