summary refs log tree commit diff
diff options
context:
space:
mode:
authorVincent Laporte <vbgl@users.noreply.github.com>2018-05-28 23:33:00 +0200
committerxeji <36407913+xeji@users.noreply.github.com>2018-05-28 23:33:00 +0200
commit5509528c2c166c2b2d40b0191e06de7dd5ae8b49 (patch)
treeed6c7c758b26a281d0a4ebf0c0109ea8b02c4e35
parent29f75982a675d8395777150a281648d9d53b5704 (diff)
downloadnixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar.gz
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar.bz2
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar.lz
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar.xz
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.tar.zst
nixpkgs-5509528c2c166c2b2d40b0191e06de7dd5ae8b49.zip
ocamlPackages.opam-file-format: init at 2.0.0-rc2 (#41164)
-rw-r--r--pkgs/development/ocaml-modules/opam-file-format/default.nix25
-rw-r--r--pkgs/top-level/ocaml-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/opam-file-format/default.nix b/pkgs/development/ocaml-modules/opam-file-format/default.nix
new file mode 100644
index 00000000000..1dec7e36e1c
--- /dev/null
+++ b/pkgs/development/ocaml-modules/opam-file-format/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, ocaml, findlib }:
+
+stdenv.mkDerivation rec {
+  version = "2.0.0-rc2";
+  name = "ocaml${ocaml.version}-opam-file-format-${version}";
+
+  src = fetchFromGitHub {
+    owner = "ocaml";
+    repo = "opam-file-format";
+    rev = "${version}";
+    sha256 = "05g0pikmifmfkwyws5x82fglgsz3d317yfn6nrz7zmpn22cirvir";
+  };
+
+  buildInputs = [ ocaml findlib ];
+
+  installFlags = [ "LIBDIR=$(OCAMLFIND_DESTDIR)" ];
+
+  meta = {
+    description = "Parser and printer for the opam file syntax";
+    license = stdenv.lib.licenses.lgpl21;
+    maintainers = [ stdenv.lib.maintainers.vbgl ];
+    inherit (src.meta) homepage;
+    inherit (ocaml.meta) platforms;
+  };
+}
diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix
index c0961a6a579..ef7e6f4c588 100644
--- a/pkgs/top-level/ocaml-packages.nix
+++ b/pkgs/top-level/ocaml-packages.nix
@@ -519,6 +519,8 @@ let
 
     omd = callPackage ../development/ocaml-modules/omd { };
 
+    opam-file-format = callPackage ../development/ocaml-modules/opam-file-format { };
+
     otfm = callPackage ../development/ocaml-modules/otfm { };
 
     otr = callPackage ../development/ocaml-modules/otr { };