ocamlPackages.gettext: use Dune 2

This commit is contained in:
Vincent Laporte 2021-02-16 08:46:31 +01:00
parent 0357225e16
commit 0b6201180e
No known key found for this signature in database
GPG Key ID: EBD582ADDDB1F81F
2 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,8 @@ buildDunePackage rec {
minimumOCamlVersion = "4.03";
useDune2 = true;
src = fetchurl {
url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-v${version}.tbz";
sha256 = "19ynsldb21r539fiwz1f43apsdnx7hj2a2d9qr9wg2hva9y2qrwb";

View File

@ -1,14 +1,16 @@
{ lib, buildDunePackage, ocaml_gettext, ounit }:
{ buildDunePackage, ocaml_gettext, dune-configurator, ounit }:
buildDunePackage rec {
pname = "gettext-stub";
inherit (ocaml_gettext) src version meta;
inherit (ocaml_gettext) src version useDune2 meta;
buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ ocaml_gettext ];
doCheck = true;
checkInputs = lib.optional doCheck ounit;
checkInputs = [ ounit ];
}