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
|
|
|
|
|
|
|
minimumOCamlVersion = "4.03";
|
|
|
|
|
2021-02-16 17:04:54 +00:00
|
|
|
useDune2 = true;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildInputs = [ cppo ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ gettext fileutils ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2020-07-18 16:06:22 +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;
|
|
|
|
maintainers = [ maintainers.volth ];
|
2022-06-16 17:23:12 +00:00
|
|
|
mainProgram = "ocaml-gettext";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|