Commit 16cb9380 authored by sheeaza's avatar sheeaza
Browse files

Update overrides.nix, compile leaderf vim plugin

Leaderf is a vim fuzzy finder plugin, for details please see
https://github.com/Yggdroot/LeaderF

, and it supports c extension to speed
up 10 times faster; The origin nixpkg does not compile the c extension,
so compile the c extension to make it faster.

1. And also remove the build dir to prevent the unnecessary dependency
   on gcc.
2. strip the share lib to keep the files small

Signed-off-by: default avatarsheeaza <winsdenny@outlook.com>
parent 3b1f3712
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1629,6 +1629,17 @@ self: super: {
        --replace "'zoxide_executable', 'zoxide'" "'zoxide_executable', '${zoxide}/bin/zoxide'"
    '';
  };
  LeaderF = super.LeaderF.overrideAttrs {
    buildInputs = [ python3 ];
    # rm */build/ to prevent dependencies on gcc
    # strip the *.so to keep files small
    buildPhase = ''
      patchShebangs .
      ./install.sh
      rm autoload/leaderf/fuzzyMatch_C/build/ -r
    '';
    stripDebugList = [ "autoload/leaderf/python" ];
  };

} // (
  let