Files
nixpkgs/pkgs/development/ocaml-modules/ocaml-gettext/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

50 lines
1.1 KiB
Nix

{
lib,
fetchurl,
fetchpatch,
applyPatches,
buildDunePackage,
cppo,
gettext,
fileutils,
ounit2,
}:
buildDunePackage rec {
pname = "gettext";
version = "0.5.0";
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 ];
propagatedBuildInputs = [
gettext
fileutils
];
# Tests of version 0.5.0 fail
doCheck = false;
checkInputs = [ ounit2 ];
meta = with lib; {
description = "OCaml Bindings to gettext";
homepage = "https://github.com/gildor478/ocaml-gettext";
license = licenses.lgpl21;
maintainers = [ ];
mainProgram = "ocaml-gettext";
};
}