From 6bfa08651eeb9752ef382bf31bfd53ecd847c7c2 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Fri, 28 Nov 2025 05:57:43 +0100 Subject: [PATCH] ocamlPackages.semaphore-compat: small cleaning --- .../ocaml-modules/semaphore-compat/default.nix | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/pkgs/development/ocaml-modules/semaphore-compat/default.nix b/pkgs/development/ocaml-modules/semaphore-compat/default.nix index 10d91afe8d27..cafa646e5b72 100644 --- a/pkgs/development/ocaml-modules/semaphore-compat/default.nix +++ b/pkgs/development/ocaml-modules/semaphore-compat/default.nix @@ -4,24 +4,22 @@ fetchurl, }: -buildDunePackage rec { +buildDunePackage (finalAttrs: { pname = "semaphore-compat"; version = "1.0.2"; src = fetchurl { - url = "https://github.com/mirage/semaphore-compat/releases/download/${version}/semaphore-compat-${version}.tbz"; - sha256 = "sha256-4CnZ2vX17IPpnlA7CNeuxZEKfA5HFoeQvwH0tCKNRnY="; + url = "https://github.com/mirage/semaphore-compat/releases/download/${finalAttrs.version}/semaphore-compat-${finalAttrs.version}.tbz"; + hash = "sha256-4CnZ2vX17IPpnlA7CNeuxZEKfA5HFoeQvwH0tCKNRnY="; }; - useDune2 = true; - - meta = with lib; { + meta = { description = "Compatibility Semaphore module"; homepage = "https://github.com/mirage/semaphore-compat"; - license = with licenses; [ + license = with lib.licenses; [ lgpl21Plus ocamlLgplLinkingException ]; - maintainers = [ maintainers.sternenseemann ]; + maintainers = [ lib.maintainers.sternenseemann ]; }; -} +})