From e78be736940f2b00cac1fc96e7584f28943a3ed1 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Thu, 20 Nov 2025 09:10:20 +0100 Subject: [PATCH] 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; }; -} +})