Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "openfst"; 5 version = "1.8.2"; 6 7 src = fetchurl { 8 url = "http://www.openfst.org/twiki/pub/FST/FstDownload/${pname}-${version}.tar.gz"; 9 sha256 = "sha256-3ph782JHIcXVujIa+VdRiY5PS7Qcijbi1k8GJ2Vti0I="; 10 }; 11 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 ]; 23 24 enableParallelBuilding = true; 25 26 nativeBuildInputs = [ autoreconfHook ]; 27 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 }; 40}