94a7946082
Without the changes build fails on parallel build as: make[1]: Entering directory '/build/cmigemo' gcc -O2 -Wall -fPIC -o build/object/charset.o -c src/charset.c Assembler messages: Fatal error: can't create build/object/charset.o: No such file or directory make[1]: *** [compile/unix.mak:33: build/object/charset.o] Error 1 shuffle=1655929862
45 lines
1.2 KiB
Nix
45 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, buildPackages
|
|
, libiconv, nkf, perl, which
|
|
, skk-dicts
|
|
}:
|
|
|
|
let
|
|
iconvBin = if stdenv.isDarwin then libiconv else buildPackages.stdenv.cc.libc;
|
|
in
|
|
stdenv.mkDerivation {
|
|
pname = "cmigemo";
|
|
version = "1.3e";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "koron";
|
|
repo = "cmigemo";
|
|
rev = "e0f6145f61e0b7058c3006f344e58571d9fdd83a";
|
|
sha256 = "00a6kdmxp16b8x0p04ws050y39qspd1bqlfq74bkirc55b77a2m1";
|
|
};
|
|
|
|
nativeBuildInputs = [ libiconv nkf perl which ];
|
|
|
|
postUnpack = ''
|
|
cp ${skk-dicts}/share/SKK-JISYO.L source/dict/
|
|
'';
|
|
|
|
patches = [ ./no-http-tool-check.patch ];
|
|
|
|
makeFlags = [ "INSTALL=install" ];
|
|
|
|
preBuild = ''
|
|
makeFlagsArray+=(FILTER_UTF8="${lib.getBin iconvBin}/bin/iconv -t utf-8 -f cp932")
|
|
'';
|
|
|
|
buildFlags = [ (if stdenv.isDarwin then "osx-all" else "gcc-all") ];
|
|
|
|
installTargets = [ (if stdenv.isDarwin then "osx-install" else "gcc-install") ];
|
|
|
|
meta = with lib; {
|
|
description = "A tool that supports Japanese incremental search with Romaji";
|
|
homepage = "https://www.kaoriya.net/software/cmigemo";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.cohei ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|