From 5560bbb27fc0724216d5f36a02c307645b07544f Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Fri, 26 Jul 2024 00:16:08 +0700 Subject: [PATCH] zsh: added build function to test nix file expressions --- home/programs/zsh.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/programs/zsh.nix b/home/programs/zsh.nix index 1051186..1705393 100644 --- a/home/programs/zsh.nix +++ b/home/programs/zsh.nix @@ -89,6 +89,10 @@ in find $(nix build "nixpkgs#$1" --no-link --print-out-paths) } + build() { + nix build --impure --expr "with import {}; callPackage $1 {}" + } + # Completion settings ## Case insensitive completion zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'