diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/openfst')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/openfst/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/openfst/default.nix b/nixpkgs/pkgs/development/libraries/openfst/default.nix new file mode 100644 index 000000000000..f652c5ee7b7c --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/openfst/default.nix @@ -0,0 +1,40 @@ +{ stdenv, fetchurl, autoreconfHook }: + +stdenv.mkDerivation rec { + pname = "openfst"; + version = "1.7.9"; + + src = fetchurl { + url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz"; + sha256 = "1pmx1yhn2gknj0an0zwqmzgwjaycapi896244np50a8y3nrsw6ck"; + }; + + 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 stdenv.lib; { + 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 + ''; + homepage = "http://www.openfst.org/twiki/bin/view/FST/WebHome"; + license = licenses.asl20; + maintainers = [ maintainers.dfordivam ]; + platforms = platforms.unix; + }; +} |