2020-07-18 16:06:22 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, gettext, fileutils, ounit }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gettext";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.4.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2021-02-16 17:04:54 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-v${version}.tbz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "19ynsldb21r539fiwz1f43apsdnx7hj2a2d9qr9wg2hva9y2qrwb";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ gettext fileutils ];
|
|
|
|
|
2022-11-04 12:27:35 +00:00
|
|
|
# Tests for version 0.4.2 are not compatible with OUnit 2.2.6
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
checkInputs = [ ounit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OCaml Bindings to gettext";
|
|
|
|
homepage = "https://github.com/gildor478/ocaml-gettext";
|
|
|
|
license = licenses.lgpl21;
|
2022-07-14 12:49:19 +00:00
|
|
|
maintainers = [ ];
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "ocaml-gettext";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|