mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-08 13:13:09 +00:00
![aleksana](/assets/img/avatar_default.png)
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.
33 lines
849 B
Nix
33 lines
849 B
Nix
{ lib, stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "kytea";
|
|
version = "0.4.7";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.phontron.com/kytea/download/${pname}-${version}.tar.gz";
|
|
sha256 = "0ilzzwn5vpvm65bnbyb9f5rxyxy3jmbafw9w0lgl5iad1ka36jjk";
|
|
};
|
|
|
|
patches = [ ./gcc-O3.patch ];
|
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=c++11-narrowing";
|
|
|
|
meta = with lib; {
|
|
homepage = "http://www.phontron.com/kytea/";
|
|
description = "General toolkit developed for analyzing text";
|
|
|
|
longDescription = ''
|
|
A general toolkit developed for analyzing text, with a focus on Japanese,
|
|
Chinese and other languages requiring word or morpheme segmentation.
|
|
'';
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ ericsagnes ];
|
|
platforms = platforms.unix;
|
|
};
|
|
|
|
}
|