silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / cm / cmigemo / package.nix
blob74f5a5100d27993051db400a6bb31c913fe1c55d
1 { lib, stdenv, fetchFromGitHub
2 , iconv, nkf, perl, which
3 , skkDictionaries
4 }:
6 stdenv.mkDerivation {
7   pname = "cmigemo";
8   version = "1.3e";
10   src = fetchFromGitHub {
11     owner = "koron";
12     repo = "cmigemo";
13     rev = "e0f6145f61e0b7058c3006f344e58571d9fdd83a";
14     sha256 = "00a6kdmxp16b8x0p04ws050y39qspd1bqlfq74bkirc55b77a2m1";
15   };
17   nativeBuildInputs = [ iconv nkf perl which ];
19   postUnpack = ''
20     cp ${skkDictionaries.l}/share/skk/SKK-JISYO.L source/dict/
21   '';
23   patches = [ ./no-http-tool-check.patch ];
25   makeFlags = [ "INSTALL=install" ];
27   buildFlags = [ (if stdenv.hostPlatform.isDarwin then "osx-all" else "gcc-all") ];
29   installTargets = [ (if stdenv.hostPlatform.isDarwin then "osx-install" else "gcc-install") ];
31   meta = with lib; {
32     description = "Tool that supports Japanese incremental search with Romaji";
33     mainProgram = "cmigemo";
34     homepage = "https://www.kaoriya.net/software/cmigemo";
35     license = licenses.mit;
36     maintainers = [ maintainers.cohei ];
37     platforms = platforms.all;
38   };