python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / inputmethods / m17n-lib / default.nix
blobff3b0afad25da58897cd34134371308f100a6ae2
1 { lib, stdenv, fetchurl, fetchpatch, m17n_db, autoreconfHook, pkg-config }:
2 stdenv.mkDerivation rec {
3   pname = "m17n-lib";
4   version = "1.8.0";
6   src = fetchurl {
7     url = "https://download.savannah.gnu.org/releases/m17n/m17n-lib-${version}.tar.gz";
8     sha256 = "0jp61y09xqj10mclpip48qlfhniw8gwy8b28cbzxy8hq8pkwmfkq";
9   };
11   patches = [
12     (fetchpatch {
13       # Patch pending upstream inclusion:
14       #   https://savannah.nongnu.org/bugs/index.php?61377
15       name = "parallel-build.patch";
16       url = "https://savannah.nongnu.org/bugs/download.php?file_id=53704";
17       hash = "sha256-1smKSIFVRJZSwCv0NiUsnndxKcPnJ/wqzH8+ka6nfNM=";
18       excludes = [ "src/ChangeLog" ];
19     })
20   ];
22   strictDeps = true;
24   # reconf needed to sucesfully cross-compile
25   nativeBuildInputs = [
26     autoreconfHook pkg-config
27     # requires m17n-db tool at build time
28     m17n_db
29   ];
31   enableParallelBuilding = true;
33   meta = {
34     homepage = "https://www.nongnu.org/m17n/";
35     description = "Multilingual text processing library (runtime)";
36     license = lib.licenses.lgpl21Plus;
37     platforms = lib.platforms.linux;
38     maintainers = with lib.maintainers; [ astsmtl ];
39   };