From a82ae49591f043d76472fcc2b127b2c831d7891e Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 18 Nov 2025 21:13:51 +0100 Subject: [PATCH] ocamlPackages.color: small cleaning --- .../development/ocaml-modules/color/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/development/ocaml-modules/color/default.nix b/pkgs/development/ocaml-modules/color/default.nix index 53a1c5273f8c..ba658e9f2aeb 100644 --- a/pkgs/development/ocaml-modules/color/default.nix +++ b/pkgs/development/ocaml-modules/color/default.nix @@ -5,26 +5,23 @@ gg, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "color"; version = "0.2.0"; - useDune2 = true; - minimalOCamlVersion = "4.05"; - src = fetchurl { - url = "https://github.com/anuragsoni/color/releases/download/${version}/color-${version}.tbz"; - sha256 = "0wg3a36i1a7fnz5pf57qzbdghwr6dzp7nnxyrz9m9765lxsn65ph"; + url = "https://github.com/anuragsoni/color/releases/download/${finalAttrs.version}/color-${finalAttrs.version}.tbz"; + hash = "sha256-8BZjdafFnFTTz75be+5vJnP42vr4FHfLt+6oEM1Q43E="; }; propagatedBuildInputs = [ gg ]; - meta = with lib; { + meta = { description = "Converts between different color formats"; - license = licenses.mit; - maintainers = with maintainers; [ fgaz ]; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ fgaz ]; homepage = "https://github.com/anuragsoni/color"; }; -} +})