From 199961b4bd6734ab162364ccfc6eccaa02fc4b60 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Thu, 30 Oct 2025 11:39:45 +0000 Subject: [PATCH] docs(mkApplication): clarify callPackage util I was struggling with weird errors because I had not called util appropriately. It was not obvious by reading the docs that `build.util` had to be used with `callPackage` before using its functions. @moduon MT-1075 --- build/util/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build/util/default.nix b/build/util/default.nix index f4dbb7d..91e0304 100644 --- a/build/util/default.nix +++ b/build/util/default.nix @@ -17,10 +17,12 @@ # Example ```nix - util.mkApplication { + let + util = pkgs.callPackage pyproject-nix.build.util { }; + in util.mkApplication { venv = pythonSet.mkVirtualEnv "mkApplication-check-venv" { pip = [ ]; - } + }; package = pythonSet.pip; } =>