2020-06-26 07:14:55 +00:00
|
|
|
{ lib, fetchurl, buildDunePackage, cppo, gettext, fileutils, ounit }:
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2020-04-06 11:44:48 +00:00
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "gettext";
|
2020-06-26 07:14:55 +00:00
|
|
|
version = "0.4.2";
|
2020-04-06 11:44:48 +00:00
|
|
|
|
2022-10-25 13:23:27 +00:00
|
|
|
minimalOCamlVersion = "4.03";
|
2021-02-16 07:46:31 +00:00
|
|
|
|
2017-02-04 15:07:45 +00:00
|
|
|
src = fetchurl {
|
2020-04-06 11:44:48 +00:00
|
|
|
url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-v${version}.tbz";
|
2020-06-26 07:14:55 +00:00
|
|
|
sha256 = "19ynsldb21r539fiwz1f43apsdnx7hj2a2d9qr9wg2hva9y2qrwb";
|
2017-02-04 15:07:45 +00:00
|
|
|
};
|
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
nativeBuildInputs = [ cppo ];
|
2020-06-26 07:14:55 +00:00
|
|
|
|
2020-04-06 11:44:48 +00:00
|
|
|
propagatedBuildInputs = [ gettext fileutils ];
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2022-10-25 13:23:27 +00:00
|
|
|
# Tests for version 0.4.2 are not compatible with OUnit 2.2.6
|
|
|
|
doCheck = false;
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2022-03-01 15:42:22 +00:00
|
|
|
checkInputs = [ ounit ];
|
2017-02-04 15:07:45 +00:00
|
|
|
|
2017-10-12 05:35:26 +00:00
|
|
|
dontStrip = true;
|
|
|
|
|
2020-04-06 11:44:48 +00:00
|
|
|
meta = with lib; {
|
2017-02-04 15:07:45 +00:00
|
|
|
description = "OCaml Bindings to gettext";
|
2020-04-06 11:44:48 +00:00
|
|
|
homepage = "https://github.com/gildor478/ocaml-gettext";
|
|
|
|
license = licenses.lgpl21;
|
2022-06-22 22:49:35 +00:00
|
|
|
maintainers = [ ];
|
2022-05-18 00:57:46 +00:00
|
|
|
mainProgram = "ocaml-gettext";
|
2017-02-04 15:07:45 +00:00
|
|
|
};
|
|
|
|
}
|