summaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules/ocaml-gettext/default.nix')
-rw-r--r--pkgs/development/ocaml-modules/ocaml-gettext/default.nix28
1 files changed, 17 insertions, 11 deletions
diff --git a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
index 79330a0999e5..1b32c0eb997c 100644
--- a/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
+++ b/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
@@ -1,22 +1,30 @@
{
lib,
fetchurl,
+ fetchpatch,
+ applyPatches,
buildDunePackage,
cppo,
gettext,
fileutils,
- ounit,
+ ounit2,
}:
buildDunePackage rec {
pname = "gettext";
- version = "0.4.2";
+ version = "0.5.0";
- minimalOCamlVersion = "4.03";
-
- src = fetchurl {
- url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-v${version}.tbz";
- sha256 = "19ynsldb21r539fiwz1f43apsdnx7hj2a2d9qr9wg2hva9y2qrwb";
+ src = applyPatches {
+ src = fetchurl {
+ url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-${version}.tbz";
+ hash = "sha256-CN2d9Vsq8YOOIxK+S+lCtDddvBjCrtDKGSRIh1DjT10=";
+ };
+ # Disable dune sites
+ # See https://github.com/gildor478/ocaml-gettext/pull/37
+ patches = fetchpatch {
+ url = "https://github.com/gildor478/ocaml-gettext/commit/5462396bee53cb13d8d6fde4c6d430412a17b64d.patch";
+ hash = "sha256-tOR+xgZTadvNeQpZnFTJEvZglK8P+ySvYnE3c1VWvKQ=";
+ };
};
nativeBuildInputs = [ cppo ];
@@ -26,12 +34,10 @@ buildDunePackage rec {
fileutils
];
- # Tests for version 0.4.2 are not compatible with OUnit 2.2.6
+ # Tests of version 0.5.0 fail
doCheck = false;
- checkInputs = [ ounit ];
-
- dontStrip = true;
+ checkInputs = [ ounit2 ];
meta = with lib; {
description = "OCaml Bindings to gettext";