depot/third_party/nixpkgs/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

23 lines
550 B
Nix

{ lib, buildDunePackage, ocaml, ocaml_gettext, dune-configurator, ounit }:
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
"gettext-stub is not available for OCaml ${ocaml.version}"
buildDunePackage {
pname = "gettext-stub";
inherit (ocaml_gettext) src version;
minimalOCamlVersion = "4.06";
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ ocaml_gettext ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit ];
meta = builtins.removeAttrs ocaml_gettext.meta [ "mainProgram" ];
}