ocamlPackages: swap throws to meta.broken
throws no longer work with the current ci we have in nixpkgs
This commit is contained in:
@@ -8,28 +8,25 @@
|
||||
ounit,
|
||||
}:
|
||||
|
||||
if lib.versionOlder ppxlib.version "0.18.0" then
|
||||
throw "ppx_bitstring is not available with ppxlib-${ppxlib.version}"
|
||||
else
|
||||
buildDunePackage {
|
||||
pname = "ppx_bitstring";
|
||||
inherit (bitstring) version src;
|
||||
|
||||
buildDunePackage {
|
||||
pname = "ppx_bitstring";
|
||||
inherit (bitstring) version src;
|
||||
patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch {
|
||||
url = "https://github.com/xguerin/bitstring/commit/b42d4924cbb5ec5fd5309e6807852b63f456f35d.patch";
|
||||
hash = "sha256-wtpSnGOzIUTmB3LhyHGopecy7F/5SYFOwaR6eReV+6g=";
|
||||
});
|
||||
|
||||
patches = lib.optional (lib.versionAtLeast ppxlib.version "0.36") (fetchpatch {
|
||||
url = "https://github.com/xguerin/bitstring/commit/b42d4924cbb5ec5fd5309e6807852b63f456f35d.patch";
|
||||
hash = "sha256-wtpSnGOzIUTmB3LhyHGopecy7F/5SYFOwaR6eReV+6g=";
|
||||
});
|
||||
buildInputs = [
|
||||
bitstring
|
||||
ppxlib
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
bitstring
|
||||
ppxlib
|
||||
];
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
checkInputs = [ ounit ];
|
||||
|
||||
doCheck = lib.versionAtLeast ocaml.version "4.08";
|
||||
checkInputs = [ ounit ];
|
||||
|
||||
meta = bitstring.meta // {
|
||||
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
|
||||
};
|
||||
}
|
||||
meta = bitstring.meta // {
|
||||
description = "Bitstrings and bitstring matching for OCaml - PPX extension";
|
||||
broken = lib.versionOlder ppxlib.version "0.18.0";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user