From 55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 26 Mar 2023 13:01:59 +0200 Subject: zsh: enable use of plugins with non-standard plugin filenames --- user/settings/zsh.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user/settings') diff --git a/user/settings/zsh.nix b/user/settings/zsh.nix index 4977ed48..86e9224c 100644 --- a/user/settings/zsh.nix +++ b/user/settings/zsh.nix @@ -14,8 +14,8 @@ let then "" else "--time-style=long-iso"; zshrc = ".config/zsh/.zshrc"; - mkZshPlugin = attrs: { - name = attrs.name; + mkZshPlugin = attrs@{ name, file ? "${name}.plugin.zsh", ... }: { + inherit name file; src = stdenv.mkDerivation { inherit (attrs) src; name = "zsh-plugin-${attrs.name}"; -- cgit 1.4.1