about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-06-14 04:02:58 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-06-14 08:26:11 +0200
commit0ae4fd5bc35debb865d37142cf2bc59c66089030 (patch)
treec8380bc308b5811e1185d320d5595c8fb64c185b /pkgs/development/ocaml-modules
parent02d1feffd82f5cc62e438c6516b010a345004216 (diff)
downloadnixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar.gz
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar.bz2
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar.lz
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar.xz
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.tar.zst
nixlib-0ae4fd5bc35debb865d37142cf2bc59c66089030.zip
ocamlPackages.cstruct: remove at 1.9.0 for OCaml < 4.02
This removes unreachable code.
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/cstruct/1.9.0.nix36
1 files changed, 0 insertions, 36 deletions
diff --git a/pkgs/development/ocaml-modules/cstruct/1.9.0.nix b/pkgs/development/ocaml-modules/cstruct/1.9.0.nix
deleted file mode 100644
index 750a153c1c48..000000000000
--- a/pkgs/development/ocaml-modules/cstruct/1.9.0.nix
+++ /dev/null
@@ -1,36 +0,0 @@
-{ lib, stdenv, fetchFromGitHub, ocaml, ocamlbuild, ocplib-endian, sexplib, findlib, ppx_tools
-, async ? null, lwt ? null
-}:
-
-assert lib.versionAtLeast ocaml.version "4.01";
-
-let version = "1.9.0"; in
-
-let opt = b: "--${if b != null then "en" else "dis"}able"; in
-
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-cstruct-${version}";
-
-  src = fetchFromGitHub {
-    owner = "mirage";
-    repo = "ocaml-cstruct";
-    rev = "v${version}";
-    sha256 = "1c1j21zgmxi9spq23imy7byn50qr7hlds1cfpzxlsx9dp309jngy";
-  };
-
-  configureFlags = [ "${opt lwt}-lwt" "${opt async}-async" "${opt ppx_tools}-ppx" ];
-
-  buildInputs = [ ocaml findlib ocamlbuild ppx_tools lwt async ];
-  propagatedBuildInputs = [ ocplib-endian sexplib ];
-
-  createFindlibDestdir = true;
-  dontStrip = true;
-
-  meta = with lib; {
-    homepage = "https://github.com/mirage/ocaml-cstruct";
-    description = "Map OCaml arrays onto C-like structs";
-    license = lib.licenses.isc;
-    maintainers = [ maintainers.vbgl maintainers.ericbmerritt ];
-    platforms = ocaml.meta.platforms or [];
-  };
-}