diff --git a/pkgs/tools/security/kpcli/default.nix b/pkgs/tools/security/kpcli/default.nix index 2a81b85482e7..cb471d663ecb 100644 --- a/pkgs/tools/security/kpcli/default.nix +++ b/pkgs/tools/security/kpcli/default.nix @@ -14,11 +14,11 @@ stdenv.mkDerivation rec { phases = [ "installPhase" "fixupPhase" ]; installPhase = '' - mkdir -p $out/bin - cp ${src} $out/bin/kpcli - chmod +x $out/bin/kpcli + mkdir -p $out/{bin,share} + cp ${src} $out/share/kpcli.pl + chmod +x $out/share/kpcli.pl - wrapProgram $out/bin/kpcli --set PERL5LIB \ + makeWrapper $out/share/kpcli.pl $out/bin/kpcli --set PERL5LIB \ "${with perlPackages; stdenv.lib.makePerlPath ([ CaptureTiny Clipboard Clone CryptRijndael SortNaturally TermReadKey TermShellUI FileKeePass TermReadLineGnu XMLParser ] ++ stdenv.lib.optional stdenv.isDarwin MacPasteboard)}"