Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / openfst / default.nix
blobcf4984229129670a3e233daf59e4f82f09b39ddb
1 { lib, stdenv, fetchurl, autoreconfHook }:
3 stdenv.mkDerivation rec {
4   pname = "openfst";
5   version = "1.8.2";
7   src = fetchurl {
8     url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz";
9     sha256 = "sha256-3ph782JHIcXVujIa+VdRiY5PS7Qcijbi1k8GJ2Vti0I=";
10   };
12   configureFlags = [
13     "--enable-compact-fsts"
14     "--enable-compress"
15     "--enable-const-fsts"
16     "--enable-far"
17     "--enable-linear-fsts"
18     "--enable-lookahead-fsts"
19     "--enable-mpdt"
20     "--enable-ngram-fsts"
21     "--enable-pdt"
22   ];
24   enableParallelBuilding = true;
26   nativeBuildInputs = [ autoreconfHook ];
28   meta = with lib; {
29     description = "Library for working with finite-state transducers";
30     longDescription = ''
31       Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs).
32       FSTs have key applications in speech recognition and synthesis, machine translation, optical character recognition,
33       pattern matching, string processing, machine learning, information extraction and retrieval among others
34     '';
35     homepage = "https://www.openfst.org/twiki/bin/view/FST/WebHome";
36     license = licenses.asl20;
37     maintainers = [ maintainers.dfordivam ];
38     platforms = platforms.unix;
39   };