mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 20:12:52 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
34 lines
965 B
Nix
34 lines
965 B
Nix
{ stdenv, lib, fetchzip, ocaml, findlib, gen, ppx_tools_versioned, ocaml-migrate-parsetree }:
|
|
|
|
if !lib.versionAtLeast ocaml.version "4.02"
|
|
then throw "sedlex is not available for OCaml ${ocaml.version}"
|
|
else
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-sedlex-${version}";
|
|
version = "1.99.5";
|
|
|
|
src = fetchzip {
|
|
url = "https://github.com/ocaml-community/sedlex/archive/fb84e1766fc4b29e79ec40029ffee5cdb37b392f.tar.gz";
|
|
sha256 = "0phnqyn6mpv5byr1kkphl24y9q9fb2k3xg9yb457h5816q6ya72n";
|
|
};
|
|
|
|
buildInputs = [ ocaml findlib ];
|
|
|
|
propagatedBuildInputs = [ gen ocaml-migrate-parsetree ppx_tools_versioned ];
|
|
|
|
buildFlags = [ "all" "opt" ];
|
|
|
|
createFindlibDestdir = true;
|
|
|
|
dontStrip = true;
|
|
|
|
meta = {
|
|
homepage = "https://github.com/ocaml-community/sedlex";
|
|
description = "An OCaml lexer generator for Unicode";
|
|
license = lib.licenses.mit;
|
|
inherit (ocaml.meta) platforms;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|