about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/stdcompat
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2021-05-29 15:21:54 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-06-05 13:38:01 +0200
commit759d05ce9e9f899f91d1b82e47633b00e6a975b0 (patch)
treec207932bc1a6299beae8b855a06aad418157bf10 /pkgs/development/ocaml-modules/stdcompat
parentbac6826dd31da9ae2742bf0299aa4ed9c7b10657 (diff)
ocamlPackages.stdcompat: init at 15
Diffstat (limited to 'pkgs/development/ocaml-modules/stdcompat')
-rw-r--r--pkgs/development/ocaml-modules/stdcompat/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/stdcompat/default.nix b/pkgs/development/ocaml-modules/stdcompat/default.nix
new file mode 100644
index 0000000000000..df5c1a58b17ba
--- /dev/null
+++ b/pkgs/development/ocaml-modules/stdcompat/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, lib, fetchurl
+, ocaml, findlib
+}:
+
+stdenv.mkDerivation rec {
+  pname = "ocaml${ocaml.version}-stdcompat";
+  version = "15";
+
+  src = fetchurl {
+    url = "https://github.com/thierry-martinez/stdcompat/releases/download/v${version}/stdcompat-${version}.tar.gz";
+    sha256 = "1xcwb529m4lg9cbnxa9m3x2nnl9nxzz1x5lxpvdfflg4zxl6yx2y";
+  };
+
+  buildInputs = [ ocaml findlib ];
+
+  configureFlags = "--libdir=$(OCAMLFIND_DESTDIR)";
+
+  meta = {
+    homepage = "https://github.com/thierry-martinez/stdcompat";
+    license = lib.licenses.bsd2;
+    maintainers = [ lib.maintainers.vbgl ];
+    inherit (ocaml.meta) platforms;
+  };
+}