depot/third_party/nixpkgs/pkgs/by-name/op/opengrm-ngram/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

25 lines
742 B
Nix

{ lib, stdenv, autoreconfHook, fetchurl, openfst }:
stdenv.mkDerivation rec {
pname = "opengrm-ngram";
version = "1.3.16";
src = fetchurl {
url = "http://www.openfst.org/twiki/pub/GRM/NGramDownload/ngram-${version}.tar.gz";
hash = "sha256-pcwP0VVW8H+0Y2Fsmh4WaH4whPPJlE3WyBI4VJfsES4=";
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ openfst ];
enableParallelBuilding = true;
meta = with lib; {
description = "Library to make and modify n-gram language models encoded as weighted finite-state transducers";
homepage = "https://www.openfst.org/twiki/bin/view/GRM/NGramLibrary";
license = licenses.asl20;
maintainers = with maintainers; [ mic92 ];
platforms = platforms.unix;
};
}