From e30a2b0207803730da54ecfeea3e519d0f937918 Mon Sep 17 00:00:00 2001
From: Matthieu Coudron <mattator@gmail.com>
Date: Thu, 4 Oct 2018 15:34:04 +0900
Subject: [PATCH] khard: fixup zsh autocompletion

I introduced an error in, install -D will create the folders until the last component excluded
so I needed to add the filename for it to create _khard
https://github.com/NixOS/nixpkgs/pull/46515
---
 pkgs/applications/misc/khard/default.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkgs/applications/misc/khard/default.nix b/pkgs/applications/misc/khard/default.nix
index 35c3c974849..8ec4e7f06d1 100644
--- a/pkgs/applications/misc/khard/default.nix
+++ b/pkgs/applications/misc/khard/default.nix
@@ -41,7 +41,7 @@ in with python.pkgs; buildPythonApplication rec {
   ];
 
   postInstall = ''
-    install -D misc/zsh/_khard $out/share/zsh/site-functions/
+    install -D misc/zsh/_khard $out/share/zsh/site-functions/_khard
   '';
 
   # Fails; but there are no tests anyway.