2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, autoreconfHook }:
|
2017-08-22 08:39:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "openfst";
|
2020-07-29 10:09:27 +01:00
|
|
|
version = "1.7.9";
|
2017-08-22 08:39:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
|
2020-07-29 10:09:27 +01:00
|
|
|
sha256 = "1pmx1yhn2gknj0an0zwqmzgwjaycapi896244np50a8y3nrsw6ck";
|
2017-08-22 08:39:22 +01:00
|
|
|
};
|
2020-06-01 14:56:39 +01: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-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-08-22 08:39:22 +01: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
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.openfst.org/twiki/bin/view/FST/WebHome";
|
2020-06-01 14:56:39 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.dfordivam ];
|
|
|
|
platforms = platforms.unix;
|
2017-08-22 08:39:22 +01:00
|
|
|
};
|
|
|
|
}
|