From 8ef37192bdd381a07e496d73368bac8c95d4ca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Sun, 17 Dec 2023 12:46:08 +0100 Subject: [PATCH] README: add check-cache-status and nixpkgs evaluation examples --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index c812b16..72df091 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,20 @@ latest release branch. ## FAQ +### How can I check if my package already have been uploaded in the binary cache? + +If you provide the `--check-cache-status`, the json will contain a `"isCached"` +key in its json, that is true or false based on the status. + +### How can I evaluate nixpkgs? + +If you want to evaluate nixpkgs in the same way +[hydra](https://hydra.nixos.org/) does it, use this snippet: + +```console +$ nix-eval-jobs --force-recurse pkgs/top-level/release.nix +``` + ### nix-eval-jobs consumes too much memory / is too slow By default, nix-eval-jobs spawns as many worker processes as there are hardware