diff options
author | Alan Pearce | 2023-03-26 13:01:59 +0200 |
---|---|---|
committer | Alan Pearce | 2023-03-26 13:01:59 +0200 |
commit | 55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725 (patch) | |
tree | fa5aa7b813d2e0f0bc990e3fef24cfa7a486285d | |
parent | da9e32d085ee6a8e5fbf5ab1cceaf0b39fb7aff4 (diff) | |
download | nixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.tar.lz nixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.tar.zst nixfiles-55bc4ae0d6c404fb7deb9b6c2120a7726f6ce725.zip |
zsh: enable use of plugins with non-standard plugin filenames
-rw-r--r-- | user/settings/zsh.nix | 4 |
1 files changed, 2 insertions, 2 deletions
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}"; |