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 ]; }; -} +})