diff options
author | Felix Buehler <account@buehler.rocks> | 2021-11-29 19:24:13 +0100 |
---|---|---|
committer | Felix Buehler <account@buehler.rocks> | 2021-11-30 21:11:29 +0100 |
commit | 22dffe27f394427505d1c9006dcb6aebc6b9f85b (patch) | |
tree | 6a83be474c2b7aa0d3fa41cb572df841da3ea0c7 /pkgs/tools/text/mecab | |
parent | 4f6849f7c416bcaf48b349a33890d67713838ec1 (diff) |
pkgs/tools: use pname&version instead of name
Diffstat (limited to 'pkgs/tools/text/mecab')
-rw-r--r-- | pkgs/tools/text/mecab/default.nix | 3 | ||||
-rw-r--r-- | pkgs/tools/text/mecab/nodic.nix | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/tools/text/mecab/default.nix b/pkgs/tools/text/mecab/default.nix index c579dcb8a175b..04293d29efb27 100644 --- a/pkgs/tools/text/mecab/default.nix +++ b/pkgs/tools/text/mecab/default.nix @@ -4,7 +4,8 @@ let mecab-base = import ./base.nix { inherit fetchurl; }; in stdenv.mkDerivation (mecab-base // { - name = "mecab-${mecab-base.version}"; + pname = "mecab"; + version = mecab-base.version; postInstall = '' sed -i 's|^dicdir = .*$|dicdir = ${mecab-ipadic}|' "$out/etc/mecabrc" diff --git a/pkgs/tools/text/mecab/nodic.nix b/pkgs/tools/text/mecab/nodic.nix index 1cbc31be4ee17..be9003623e05e 100644 --- a/pkgs/tools/text/mecab/nodic.nix +++ b/pkgs/tools/text/mecab/nodic.nix @@ -4,5 +4,6 @@ let mecab-base = import ./base.nix { inherit fetchurl; }; in stdenv.mkDerivation (mecab-base // { - name = "mecab-nodic-${mecab-base.version}"; + pname = "mecab-nodic"; + version = mecab-base.version; }) |