nixpkgs/pkgs/by-name/cm/cmigemo/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

40 lines
1.0 KiB
Nix

{ lib, stdenv, fetchFromGitHub
, iconv, nkf, perl, which
, skkDictionaries
}:
stdenv.mkDerivation {
pname = "cmigemo";
version = "1.3e";
src = fetchFromGitHub {
owner = "koron";
repo = "cmigemo";
rev = "e0f6145f61e0b7058c3006f344e58571d9fdd83a";
sha256 = "00a6kdmxp16b8x0p04ws050y39qspd1bqlfq74bkirc55b77a2m1";
};
nativeBuildInputs = [ iconv nkf perl which ];
postUnpack = ''
cp ${skkDictionaries.l}/share/skk/SKK-JISYO.L source/dict/
'';
patches = [ ./no-http-tool-check.patch ];
makeFlags = [ "INSTALL=install" ];
buildFlags = [ (if stdenv.hostPlatform.isDarwin then "osx-all" else "gcc-all") ];
installTargets = [ (if stdenv.hostPlatform.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;
};
}