From 6938c6ae788d9a807f76d539d0b7b8bfdb5be688 Mon Sep 17 00:00:00 2001 From: Philip Taron Date: Tue, 26 Mar 2024 07:48:56 -0700 Subject: [PATCH] Avoid top-level `with ...;` in pkgs/development/tools/ocaml/opam-publish/default.nix --- .../tools/ocaml/opam-publish/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/ocaml/opam-publish/default.nix b/pkgs/development/tools/ocaml/opam-publish/default.nix index b18b3e6707be..9dc78266f9f3 100644 --- a/pkgs/development/tools/ocaml/opam-publish/default.nix +++ b/pkgs/development/tools/ocaml/opam-publish/default.nix @@ -1,6 +1,17 @@ { lib, fetchFromGitHub, ocamlPackages }: -with ocamlPackages; +let + inherit (ocamlPackages) + buildDunePackage + cmdliner + github + github-unix + lwt_ssl + opam-core + opam-format + opam-state + ; +in buildDunePackage rec { pname = "opam-publish";