2022-10-21 18:38:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, m17n_db, autoreconfHook, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "m17n-lib";
|
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-18 13:19:15 +00:00
|
|
|
url = "https://download.savannah.gnu.org/releases/m17n/m17n-lib-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "0jp61y09xqj10mclpip48qlfhniw8gwy8b28cbzxy8hq8pkwmfkq";
|
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# Patch pending upstream inclusion:
|
|
|
|
# https://savannah.nongnu.org/bugs/index.php?61377
|
|
|
|
name = "parallel-build.patch";
|
|
|
|
url = "https://savannah.nongnu.org/bugs/download.php?file_id=53704";
|
|
|
|
hash = "sha256-1smKSIFVRJZSwCv0NiUsnndxKcPnJ/wqzH8+ka6nfNM=";
|
|
|
|
excludes = [ "src/ChangeLog" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
# reconf needed to sucesfully cross-compile
|
2021-12-06 16:07:01 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkg-config
|
|
|
|
# requires m17n-db tool at build time
|
|
|
|
m17n_db
|
|
|
|
];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://www.nongnu.org/m17n/";
|
|
|
|
description = "Multilingual text processing library (runtime)";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
maintainers = with lib.maintainers; [ astsmtl ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|