1{ lib
2, stdenv
3, fetchurl
4, fetchpatch
5, m17n_db
6, autoreconfHook
7, pkg-config
8}:
9stdenv.mkDerivation rec {
10 pname = "m17n-lib";
11 version = "1.8.2";
12
13 src = fetchurl {
14 url = "https://download.savannah.gnu.org/releases/m17n/m17n-lib-${version}.tar.gz";
15 hash = "sha256-5bA0SvnxFdlJV6P5ud68T45nG2n4wf1eC2iKeU16J/I=";
16 };
17
18 strictDeps = true;
19
20 # reconf needed to sucesfully cross-compile
21 nativeBuildInputs = [
22 autoreconfHook pkg-config
23 # requires m17n-db tool at build time
24 m17n_db
25 ];
26
27 enableParallelBuilding = true;
28
29 meta = {
30 homepage = "https://www.nongnu.org/m17n/";
31 description = "Multilingual text processing library (runtime)";
32 license = lib.licenses.lgpl21Plus;
33 platforms = lib.platforms.linux;
34 maintainers = with lib.maintainers; [ astsmtl ];
35 };
36}