summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-11-29 19:06:22 +0100
committerVincent Laporte <vbgl@users.noreply.github.com>2021-12-07 09:38:01 +0100
commit826c4bf7f96e22740d90d9ecd5c1608c62aac6f5 (patch)
treeb769ad5d303370b1e5bbeb98f6d6e9cff4bbd6b9
parentocamlPackages.ocsigen_deriving: 0.8.1 → 0.8.2 (diff)
downloadnixpkgs-826c4bf7f96e22740d90d9ecd5c1608c62aac6f5.tar.gz
ocamlPackages.optcomp: remove broken
(cherry picked from commit 1e4148203674f0342f1883e6d87c6e15d843e640)
-rw-r--r--pkgs/development/ocaml-modules/optcomp/META12
-rw-r--r--pkgs/development/ocaml-modules/optcomp/default.nix49
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
3 files changed, 0 insertions, 63 deletions
diff --git a/pkgs/development/ocaml-modules/optcomp/META b/pkgs/development/ocaml-modules/optcomp/META
deleted file mode 100644
index 8a942288f752..000000000000
--- 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 55ee0b419c7b..000000000000
--- a/pkgs/development/ocaml-modules/optcomp/default.nix
+++ /dev/null
@@ -1,49 +0,0 @@
-{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocamlbuild, camlp4 }:
-
-stdenv.mkDerivation rec {
- pname = "ocaml-optcomp";
- version = "1.6";
-
- src = fetchurl {
- url = "https://github.com/diml/optcomp/archive/${version}.tar.gz";
- sha256 = "0hhhb2gisah1h22zlg5iszbgqxdd7x85cwd57bd4mfkx9l7dh8jh";
- };
-
- 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 b2d2d2415e24..be9c1232e4cd 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 { };