about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorSylvain Fankhauser <sephi@fhtagn.top>2021-05-22 09:03:15 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2021-07-23 10:32:12 +0200
commitdb6c491ee0faabe16550261c28c15706d41145c6 (patch)
tree5949ecbadb6a7287af5cdc2d7115853b737d0857 /pkgs/development/ocaml-modules
parent9c7b3586d2c3b48920c3967629c1c75db649729c (diff)
downloadnixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar.gz
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar.bz2
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar.lz
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar.xz
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.tar.zst
nixlib-db6c491ee0faabe16550261c28c15706d41145c6.zip
ocamlPackages.mparser: 1.2.3 → 1.3
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/mparser/default.nix28
1 files changed, 12 insertions, 16 deletions
diff --git a/pkgs/development/ocaml-modules/mparser/default.nix b/pkgs/development/ocaml-modules/mparser/default.nix
index 90c24718dd15..5f63a98a1309 100644
--- a/pkgs/development/ocaml-modules/mparser/default.nix
+++ b/pkgs/development/ocaml-modules/mparser/default.nix
@@ -1,25 +1,21 @@
-{ stdenv, lib, fetchzip, ocaml, findlib, ocamlbuild }:
+{ lib, fetchFromGitHub, buildDunePackage }:
 
-stdenv.mkDerivation {
-  name = "ocaml${ocaml.version}-mparser-1.2.3";
-  src = fetchzip {
-    url = "https://github.com/cakeplus/mparser/archive/1.2.3.tar.gz";
-    sha256 = "1f8vpagmv0jdm50pxs2xwh2xcmvgaprx4kw871hlml9ahsflxgnw";
-  };
-
-  buildInputs = [ ocaml findlib ocamlbuild ];
+buildDunePackage rec {
+  pname = "mparser";
+  version = "1.3";
+  useDune2 = true;
 
-  configurePhase = "ocaml setup.ml -configure";
-  buildPhase = "ocaml setup.ml -build";
-  installPhase = "ocaml setup.ml -install";
-
-  createFindlibDestdir = true;
+  src = fetchFromGitHub {
+    owner = "murmour";
+    repo = "mparser";
+    rev = version;
+    sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx";
+  };
 
   meta = {
     description = "A simple monadic parser combinator OCaml library";
     license = lib.licenses.lgpl21Plus;
-    homepage = "https://github.com/cakeplus/mparser";
+    homepage = "https://github.com/murmour/mparser";
     maintainers = [ lib.maintainers.vbgl ];
-    inherit (ocaml.meta) platforms;
   };
 }