nixpkgs/pkgs/development/libraries/openfst/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, autoreconfHook }:
2017-08-22 07:39:22 +00:00
stdenv.mkDerivation rec {
pname = "openfst";
2022-03-14 06:41:07 +00:00
version = "1.8.2";
2017-08-22 07:39:22 +00:00
src = fetchurl {
url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
2022-03-14 06:41:07 +00:00
sha256 = "sha256-3ph782JHIcXVujIa+VdRiY5PS7Qcijbi1k8GJ2Vti0I=";
2017-08-22 07:39:22 +00:00
};
2020-06-01 13:56:39 +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 ];
meta = with lib; {
2017-08-22 07:39:22 +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
'';
2021-12-31 18:49:54 +00:00
homepage = "https://www.openfst.org/twiki/bin/view/FST/WebHome";
2020-06-01 13:56:39 +00:00
license = licenses.asl20;
maintainers = [ maintainers.dfordivam ];
platforms = platforms.unix;
2017-08-22 07:39:22 +00:00
};
}