2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openfst";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.8.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-B3cUFZ1c8+OKgLbGZW08zCyLi2xQu0G7ZcX+wQeWv1M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-06-18 07:06:33 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-compact-fsts"
|
|
|
|
"--enable-compress"
|
|
|
|
"--enable-const-fsts"
|
|
|
|
"--enable-far"
|
|
|
|
"--enable-linear-fsts"
|
|
|
|
"--enable-lookahead-fsts"
|
|
|
|
"--enable-mpdt"
|
|
|
|
"--enable-ngram-fsts"
|
|
|
|
"--enable-pdt"
|
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Library for working with finite-state transducers";
|
|
|
|
longDescription = ''
|
|
|
|
Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs).
|
|
|
|
FSTs have key applications in speech recognition and synthesis, machine translation, optical character recognition,
|
|
|
|
pattern matching, string processing, machine learning, information extraction and retrieval among others
|
|
|
|
'';
|
2022-01-03 16:56:52 +00:00
|
|
|
homepage = "https://www.openfst.org/twiki/bin/view/FST/WebHome";
|
2020-06-18 07:06:33 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.dfordivam ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|