TDT4310-project-sorted-japa.../nix/mecab-unidic.nix
2024-04-26 00:46:44 +02:00

10 lines
227 B
Nix

{ stdenv, mecab-base, unidic }:
stdenv.mkDerivation (mecab-base // {
pname = "mecab";
version = mecab-base.version;
postInstall = ''
sed -i 's|^dicdir = .*$|dicdir = ${unidic}|' "$out/etc/mecabrc"
'';
})