ocamlPackages.optcomp: remove broken

This commit is contained in:
Vincent Laporte 2021-11-29 19:06:22 +01:00 committed by Vincent Laporte
parent fed5706e4a
commit 54fcdaa6b9
3 changed files with 0 additions and 65 deletions

View file

@ -1,12 +0,0 @@
# OASIS_START
# DO NOT EDIT (digest: ec844fa3189acb2a866b89a69d111ba4)
version = "1.6"
description = "Optional compilation with cpp-like directives"
requires = "camlp4"
archive(syntax, preprocessor) = "optcomp.cma"
archive(syntax, toploop) = "optcomp.cma"
archive(syntax, preprocessor, native) = "optcomp.cmxa"
archive(syntax, preprocessor, native, plugin) = "optcomp.cmxs"
exists_if = "optcomp.cma"
# OASIS_STOP

View file

@ -1,51 +0,0 @@
{ stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, ocamlbuild, camlp4 }:
stdenv.mkDerivation rec {
pname = "ocaml-optcomp";
version = "1.6";
src = fetchFromGitHub {
owner = "diml";
repo = "optcomp";
rev = version;
sha256 = "sha256-UCLYDk19ukraOqVxVlA/rXX81texPPqFgAEqHZ9YEEI=";
};
patches =
let inherit (lib) optional versionAtLeast; in
optional (versionAtLeast ocaml.version "4.02") (fetchpatch {
url = "https://github.com/diml/optcomp/commit/b7f809360c9794b383a4bc0492f6df381276b429.patch";
sha256 = "1n095lk94jq1rwi0l24g2wbgms7249wdd31n0ji895dr6755s93y";
})
;
createFindlibDestdir = true;
buildInputs = [ ocaml findlib ocamlbuild camlp4 ];
configurePhase = ''
cp ${./META} META
'';
buildPhase = ''
ocamlbuild src/optcomp.cmxs src/optcomp.cma src/optcomp_o.native src/optcomp_r.native
'';
installPhase = ''
mkdir -p $out/bin
cp _build/src/optcomp_o.native $out/bin/optcomp-o
cp _build/src/optcomp_r.native $out/bin/optcomp-r
ocamlfind install optcomp META _build/src/optcomp.{a,cma,cmxa,cmxs} _build/src/pa_optcomp.{cmi,cmx,mli}
'';
meta = {
homepage = "https://github.com/diml/optcomp";
description = "Optional compilation for OCaml with cpp-like directives";
license = lib.licenses.bsd3;
platforms = ocaml.meta.platforms or [ ];
maintainers = [
lib.maintainers.gal_bolle
];
};
}

View file

@ -912,8 +912,6 @@ let
ocaml_oasis = callPackage ../development/tools/ocaml/oasis { };
ocaml_optcomp = callPackage ../development/ocaml-modules/optcomp { };
ocaml_pcre = callPackage ../development/ocaml-modules/pcre {};
ocaml-print-intf = callPackage ../development/ocaml-modules/ocaml-print-intf { };