diff options
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/ocaml-modules/optcomp/META | 12 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/optcomp/default.nix | 51 | ||||
-rw-r--r-- | pkgs/top-level/ocaml-packages.nix | 2 |
3 files changed, 0 insertions, 65 deletions
diff --git a/pkgs/development/ocaml-modules/optcomp/META b/pkgs/development/ocaml-modules/optcomp/META deleted file mode 100644 index 8a942288f75..00000000000 --- a/pkgs/development/ocaml-modules/optcomp/META +++ /dev/null @@ -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 - diff --git a/pkgs/development/ocaml-modules/optcomp/default.nix b/pkgs/development/ocaml-modules/optcomp/default.nix deleted file mode 100644 index 726204f5dd4..00000000000 --- a/pkgs/development/ocaml-modules/optcomp/default.nix +++ /dev/null @@ -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 - ]; - }; - -} diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index b2d2d2415e2..be9c1232e4c 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -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 { }; |