nixpkgs/pkgs/development/ocaml-modules/ocaml-gettext/stub.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
550 B
Nix
Raw Normal View History

{ 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;
2021-02-16 07:46:31 +00:00
minimalOCamlVersion = "4.06";
2021-02-16 07:46:31 +00:00
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ ocaml_gettext ];
doCheck = lib.versionAtLeast ocaml.version "4.08";
checkInputs = [ ounit ];
meta = builtins.removeAttrs ocaml_gettext.meta [ "mainProgram" ];
}