aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/libraries/openfst/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/openfst/default.nix')
-rw-r--r--nixpkgs/pkgs/development/libraries/openfst/default.nix32
1 files changed, 24 insertions, 8 deletions
diff --git a/nixpkgs/pkgs/development/libraries/openfst/default.nix b/nixpkgs/pkgs/development/libraries/openfst/default.nix
index a8e65aebc45..f652c5ee7b7 100644
--- a/nixpkgs/pkgs/development/libraries/openfst/default.nix
+++ b/nixpkgs/pkgs/development/libraries/openfst/default.nix
@@ -1,14 +1,31 @@
-{ stdenv, fetchurl }:
+{ stdenv, fetchurl, autoreconfHook }:
stdenv.mkDerivation rec {
pname = "openfst";
- version = "1.7.6";
+ version = "1.7.9";
src = fetchurl {
url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
- sha256 = "03hs0196qbjfbviqn6nnb7igvv3cnpxyizlwlzmx88a6fhiq97bm";
+ sha256 = "1pmx1yhn2gknj0an0zwqmzgwjaycapi896244np50a8y3nrsw6ck";
};
- meta = {
+
+ 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).
@@ -16,9 +33,8 @@ stdenv.mkDerivation rec {
pattern matching, string processing, machine learning, information extraction and retrieval among others
'';
homepage = "http://www.openfst.org/twiki/bin/view/FST/WebHome";
- license = stdenv.lib.licenses.asl20;
- maintainers = [ stdenv.lib.maintainers.dfordivam ];
- platforms = stdenv.lib.platforms.unix;
+ license = licenses.asl20;
+ maintainers = [ maintainers.dfordivam ];
+ platforms = platforms.unix;
};
}
-