Files
nixpkgs/pkgs/development/ocaml-modules/ulex/default.nix
T
jopejoe1 1e1cef625b ocamlPackages: swap throws to meta.broken
throws no longer work with the current ci we have in nixpkgs
2025-10-18 22:23:06 +02:00

62 lines
1.1 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
ocaml,
findlib,
ocamlbuild,
camlp4,
}:
let
pname = "ulex";
param =
if lib.versionAtLeast ocaml.version "4.02" then
{
version = "1.2";
sha256 = "08yf2x9a52l2y4savjqfjd2xy4pjd1rpla2ylrr9qrz1drpfw4ic";
}
else
{
version = "1.1";
sha256 = "0cmscxcmcxhlshh4jd0lzw5ffzns12x3bj7h27smbc8waxkwffhl";
};
in
stdenv.mkDerivation {
pname = "ocaml${ocaml.version}-${pname}";
inherit (param) version;
src = fetchFromGitHub {
owner = "ocaml-community";
repo = pname;
rev = "v${param.version}";
inherit (param) sha256;
};
createFindlibDestdir = true;
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
camlp4
];
propagatedBuildInputs = [ camlp4 ];
strictDeps = true;
buildFlags = [
"all"
"all.opt"
];
meta = {
homepage = "https://opam.ocaml.org/packages/ulex/";
description = "Lexer generator for Unicode and OCaml";
license = lib.licenses.mit;
inherit (ocaml.meta) platforms;
maintainers = [ lib.maintainers.roconnor ];
broken = lib.versionAtLeast ocaml.version "5.0";
};
}