From f4dcd53e046b74f2f67b925dff6b7c1d29e2b2e4 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:10 +0100 Subject: [PATCH 1/4] ocamlPackages.xmlplaylist: small cleaning --- .../ocaml-modules/xmlplaylist/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/xmlplaylist/default.nix b/pkgs/development/ocaml-modules/xmlplaylist/default.nix index a9294cf162df..1ad42afbf26a 100644 --- a/pkgs/development/ocaml-modules/xmlplaylist/default.nix +++ b/pkgs/development/ocaml-modules/xmlplaylist/default.nix @@ -6,26 +6,24 @@ xmlm, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "xmlplaylist"; version = "0.1.5"; - useDune2 = true; - src = fetchFromGitHub { owner = "savonet"; repo = "ocaml-xmlplaylist"; - rev = "v${version}"; - sha256 = "1x5lbwkr2ip00x8vyfbl8936yy79j138vx8a16ix7g9p2j5qsfcq"; + tag = "v${finalAttrs.version}"; + hash = "sha256-mDmNixQ3vdOjCQr1jUaQ6XhvRkJ0Ob9RB+BGkSdftPQ="; }; buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ xmlm ]; - meta = with lib; { + meta = { homepage = "https://github.com/savonet/ocaml-xmlplaylist"; description = "Module to parse various RSS playlist formats"; - license = licenses.lgpl21Only; - maintainers = with maintainers; [ dandellion ]; + license = lib.licenses.lgpl21Only; + maintainers = with lib.maintainers; [ dandellion ]; }; -} +}) From 6fb1d5663946bf532564e6fb5d330501d644f59d Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:13 +0100 Subject: [PATCH 2/4] ocamlPackages.wtf8: small cleaning --- .../development/ocaml-modules/wtf8/default.nix | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/pkgs/development/ocaml-modules/wtf8/default.nix b/pkgs/development/ocaml-modules/wtf8/default.nix index faeb7730f687..620d5472077d 100644 --- a/pkgs/development/ocaml-modules/wtf8/default.nix +++ b/pkgs/development/ocaml-modules/wtf8/default.nix @@ -4,23 +4,19 @@ buildDunePackage, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "wtf8"; version = "1.0.2"; - useDune2 = true; - - minimalOCamlVersion = "4.02"; - src = fetchurl { - url = "https://github.com/flowtype/ocaml-${pname}/releases/download/v${version}/${pname}-v${version}.tbz"; - sha256 = "09ygcxxd5warkdzz17rgpidrd0pg14cy2svvnvy1hna080lzg7vp"; + url = "https://github.com/flowtype/ocaml-wtf8/releases/download/v${finalAttrs.version}/wtf8-v${finalAttrs.version}.tbz"; + hash = "sha256-d5/3KUBAWRj8tntr4RkJ74KWW7wvn/B/m1nx0npnzyc="; }; - meta = with lib; { + meta = { homepage = "https://github.com/flowtype/ocaml-wtf8"; description = "WTF-8 is a superset of UTF-8 that allows unpaired surrogates"; - license = licenses.mit; - maintainers = [ maintainers.eqyiel ]; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.eqyiel ]; }; -} +}) From 0a8a866a47259088398996368a3ebc578e385e3f Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:16 +0100 Subject: [PATCH 3/4] ocamlPackages.earley: small cleaning --- pkgs/development/ocaml-modules/earley/default.nix | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/pkgs/development/ocaml-modules/earley/default.nix b/pkgs/development/ocaml-modules/earley/default.nix index 7154c0554055..6e027328c967 100644 --- a/pkgs/development/ocaml-modules/earley/default.nix +++ b/pkgs/development/ocaml-modules/earley/default.nix @@ -5,19 +5,16 @@ stdlib-shims, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { version = "3.0.0"; pname = "earley"; src = fetchFromGitHub { owner = "rlepigre"; repo = "ocaml-earley"; - rev = version; - sha256 = "1vi58zdxchpw6ai0bz9h2ggcmg8kv57yk6qbx82lh47s5wb3mz5y"; + tag = finalAttrs.version; + hash = "sha256-vvw6Fi/6EEgF6gub6U/ZE73K3hMw/QWiMvxC1ttHJe4="; }; - minimalOCamlVersion = "4.07"; - useDune2 = true; - buildInputs = [ stdlib-shims ]; doCheck = true; @@ -29,4 +26,4 @@ buildDunePackage rec { maintainers = [ lib.maintainers.vbgl ]; mainProgram = "pa_ocaml"; }; -} +}) From e78be736940f2b00cac1fc96e7584f28943a3ed1 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:20 +0100 Subject: [PATCH 4/4] ocamlPackages.gnuplot: small cleaning --- .../ocaml-modules/gnuplot/default.nix | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/pkgs/development/ocaml-modules/gnuplot/default.nix b/pkgs/development/ocaml-modules/gnuplot/default.nix index 181366c22626..dace43ff644a 100644 --- a/pkgs/development/ocaml-modules/gnuplot/default.nix +++ b/pkgs/development/ocaml-modules/gnuplot/default.nix @@ -6,19 +6,15 @@ iso8601, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "gnuplot"; version = "0.7"; - useDune2 = true; - - minimalOCamlVersion = "4.03"; - src = fetchFromGitHub { owner = "c-cube"; - repo = "ocaml-${pname}"; - rev = "v${version}"; - sha256 = "02pzi3lb57ysrdsba743s3vmnapjbxgq8ynlzpxbbs6cn1jj6ch9"; + repo = "ocaml-gnuplot"; + tag = "v${finalAttrs.version}"; + hash = "sha256-CTIjZbDM6LX6/dR6hF9f8ipb99CDHLV0y9qfsuiI/wo="; }; propagatedBuildInputs = [ @@ -26,10 +22,10 @@ buildDunePackage rec { iso8601 ]; - meta = with lib; { - inherit (src.meta) homepage; - description = "Ocaml bindings to Gnuplot"; - maintainers = [ maintainers.bcdarwin ]; - license = licenses.lgpl21; + meta = { + homepage = "https://github.com/c-cube/ocaml-gnuplot"; + description = "OCaml bindings to Gnuplot"; + maintainers = [ lib.maintainers.bcdarwin ]; + license = lib.licenses.lgpl21; }; -} +})