about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/opengrm-ngram/default.nix
blob: b84e4159f3e73e353101d0298fce4325ea4f40e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, autoreconfHook, fetchurl, openfst }:

stdenv.mkDerivation rec {
  pname = "opengrm-ngram";
  version = "1.3.14";

  src = fetchurl {
    url = "http://www.openfst.org/twiki/pub/GRM/NGramDownload/ngram-${version}.tar.gz";
    sha256 = "sha256-ivMPDy6CPM17hWCToLOVzUgcWZiEt2pjYeizeBLYnYc=";
  };

  nativeBuildInputs = [ autoreconfHook ];

  buildInputs = [ openfst ];

  enableParallelBuilding = true;

  meta = with lib; {
    description = "Library to make and modify n-gram language models encoded as weighted finite-state transducers";
    homepage = "https://www.openfst.org/twiki/bin/view/GRM/NGramLibrary";
    license = licenses.asl20;
    maintainers = with maintainers; [ mic92 ];
    platforms = platforms.unix;
  };
}