Unverified Commit d62be50b authored by Vincent Laporte's avatar Vincent Laporte Committed by GitHub
Browse files

[Backport release-25.11]...

[Backport release-25.11] ocamlPackages.{ezxmlm,mparser,ocaml-print-intf,safepass}: small cleaning (#464953)
parents 268faffa 06b6e667
Loading
Loading
Loading
Loading
+7 −9
Original line number Diff line number Diff line
@@ -5,20 +5,18 @@
  xmlm,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "ezxmlm";
  version = "1.1.0";

  useDune2 = true;

  src = fetchurl {
    url = "https://github.com/mirage/ezxmlm/releases/download/v${version}/ezxmlm-v${version}.tbz";
    sha256 = "123dn4h993mlng9gzf4nc6mw75ja7ndcxkbkwfs48j5jk1z05j6d";
    url = "https://github.com/mirage/ezxmlm/releases/download/v${finalAttrs.version}/ezxmlm-v${finalAttrs.version}.tbz";
    hash = "sha256-zcgCfpiySES043PNzpo9SpbDq2GWuP/Ss7SOlCCxbYg=";
  };

  propagatedBuildInputs = [ xmlm ];

  meta = with lib; {
  meta = {
    description = "Combinators to use with xmlm for parsing and selection";
    longDescription = ''
      An "easy" interface on top of the xmlm library. This version provides
@@ -31,8 +29,8 @@ buildDunePackage rec {
      types in this library are more specific than Xmlm, it should interoperate
      just fine with it if you decide to switch over.
    '';
    maintainers = [ maintainers.carlosdagos ];
    maintainers = [ lib.maintainers.carlosdagos ];
    homepage = "https://github.com/mirage/ezxmlm/";
    license = licenses.isc;
    license = lib.licenses.isc;
  };
}
})
+4 −5
Original line number Diff line number Diff line
@@ -4,16 +4,15 @@
  buildDunePackage,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "mparser";
  version = "1.3";
  useDune2 = true;

  src = fetchFromGitHub {
    owner = "murmour";
    repo = "mparser";
    rev = version;
    sha256 = "16j19v16r42gcsii6a337zrs5cxnf12ig0vaysxyr7sq5lplqhkx";
    tag = finalAttrs.version;
    hash = "sha256-fUJMLy1Yn+y79mqDF0VwtrOi8z9jKBOjZk+QbMJOQZo=";
  };

  meta = {
@@ -22,4 +21,4 @@ buildDunePackage rec {
    homepage = "https://github.com/murmour/mparser";
    maintainers = [ lib.maintainers.vbgl ];
  };
}
})
+0 −1
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@

buildDunePackage {
  pname = "mparser-pcre";
  useDune2 = true;

  inherit (mparser) src version;

+8 −12
Original line number Diff line number Diff line
@@ -5,20 +5,16 @@
  dune-build-info,
  bos,
}:
let
  author = "avsm";

buildDunePackage (finalAttrs: {
  pname = "ocaml-print-intf";
  version = "1.2.0";
in
buildDunePackage rec {
  inherit pname version;
  useDune2 = true;

  src = fetchFromGitHub {
    owner = author;
    repo = pname;
    rev = "v${version}";
    sha256 = "0hw4gl7irarcywibdjqxmrga8f7yj52wgy7sc7n0wyy74jzxb8np";
    owner = "avsm";
    repo = "ocaml-print-intf";
    tag = "v${finalAttrs.version}";
    hash = "sha256-16LVvyTHew7sYfr4x0WR/jikXq4dy7Yi9yyrHA99hEM=";
  };

  buildInputs = [
@@ -28,8 +24,8 @@ buildDunePackage rec {

  meta = {
    description = "Pretty print an OCaml cmi/cmt/cmti file in human-readable OCaml signature form";
    homepage = "https://github.com/${author}/${pname}";
    homepage = "https://github.com/avsm/ocaml-print-intf";
    license = lib.licenses.isc;
    maintainers = [ lib.maintainers.nerdypepper ];
  };
}
})
+5 −7
Original line number Diff line number Diff line
@@ -4,24 +4,22 @@
  buildDunePackage,
}:

buildDunePackage rec {
buildDunePackage (finalAttrs: {
  pname = "safepass";
  version = "3.1";

  useDune2 = true;

  src = fetchFromGitHub {
    owner = "darioteixeira";
    repo = "ocaml-safepass";
    rev = "v${version}";
    sha256 = "1cwslwdb1774lfmhcclj9kymvidbcpjx1vp16jnjirqdqgl4zs5q";
    tag = "v${finalAttrs.version}";
    hash = "sha256-uOhP6MMN5yitNOHu0OVlq8Vd/UySMgaro+ScsBqnmrM=";
  };

  meta = {
    inherit (src.meta) homepage;
    homepage = "https://github.com/darioteixeira/ocaml-safepass";
    description = "OCaml library offering facilities for the safe storage of user passwords";
    license = lib.licenses.lgpl21;
    maintainers = with lib.maintainers; [ vbgl ];
  };

}
})