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
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildDunePackage,
|
|
ocaml,
|
|
qcheck,
|
|
}:
|
|
|
|
buildDunePackage rec {
|
|
pname = "stdint";
|
|
version = "0.7.2";
|
|
|
|
duneVersion = "3";
|
|
|
|
minimalOCamlVersion = "4.03";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/andrenth/ocaml-stdint/releases/download/${version}/stdint-${version}.tbz";
|
|
sha256 = "sha256-FWAZjYvJx68+qVLEDavoJmZpQhDsw/35u/60MhHpd+Y=";
|
|
};
|
|
|
|
# 1. disable remaining broken tests, see
|
|
# https://github.com/andrenth/ocaml-stdint/issues/59
|
|
# 2. fix tests to liberal test range
|
|
# https://github.com/andrenth/ocaml-stdint/pull/61
|
|
postPatch = ''
|
|
substituteInPlace tests/stdint_test.ml \
|
|
--replace 'test "An integer should perform left-shifts correctly"' \
|
|
'skip "An integer should perform left-shifts correctly"' \
|
|
--replace 'test "Logical shifts must not sign-extend"' \
|
|
'skip "Logical shifts must not sign-extend"'
|
|
'';
|
|
|
|
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
|
checkInputs = [ qcheck ];
|
|
|
|
meta = {
|
|
description = "Various signed and unsigned integers for OCaml";
|
|
homepage = "https://github.com/andrenth/ocaml-stdint";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
}
|