branch: elpa/nix-mode commit 24a572c88e561e2078abcf40a34a3b9d306d07c3 Author: Daniel Nagy <danieln...@posteo.de> Commit: Daniel Nagy <danieln...@posteo.de>
Repair call of `nix search --json` Since recently, the nix command does not accept empty strings anymore. We simply nil out those empty strings. --- nix-search.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nix-search.el b/nix-search.el index a29e81e931..3b95e4ff9a 100644 --- a/nix-search.el +++ b/nix-search.el @@ -19,8 +19,8 @@ ;;;###autoload (defun nix-search--search (search file &optional no-cache use-flakes) (nix--process-json-nocheck "search" "--json" - (if use-flakes "" "--file") file - (if no-cache "--no-cache" "") + (unless use-flakes "--file") file + (when no-cache "--no-cache") search)) (defface nix-search-pname