1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/pkgs/tools/text/cmigemo/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

40 lines
995 B
Nix

{ lib, stdenv, fetchFromGitHub
, iconv, nkf, perl, which
, skk-dicts
}:
stdenv.mkDerivation {
pname = "cmigemo";
version = "1.3e";
src = fetchFromGitHub {
owner = "koron";
repo = "cmigemo";
rev = "e0f6145f61e0b7058c3006f344e58571d9fdd83a";
sha256 = "00a6kdmxp16b8x0p04ws050y39qspd1bqlfq74bkirc55b77a2m1";
};
nativeBuildInputs = [ iconv nkf perl which ];
postUnpack = ''
cp ${skk-dicts}/share/SKK-JISYO.L source/dict/
'';
patches = [ ./no-http-tool-check.patch ];
makeFlags = [ "INSTALL=install" ];
buildFlags = [ (if stdenv.isDarwin then "osx-all" else "gcc-all") ];
installTargets = [ (if stdenv.isDarwin then "osx-install" else "gcc-install") ];
meta = with lib; {
description = "Tool that supports Japanese incremental search with Romaji";
mainProgram = "cmigemo";
homepage = "https://www.kaoriya.net/software/cmigemo";
license = licenses.mit;
maintainers = [ maintainers.cohei ];
platforms = platforms.all;
};
}