Skip to content
Discussion options

You must be logged in to vote

I did it.
dont know if is the best way to use it but here it is
ps: I am using flake-parts with import-tree

{inputs, ...}: {
  flake.wrappers.yazi = {
    pkgs,
    wlib,
    lib,
    config,
    ...
  }: let
    plugins = with pkgs.yaziPlugins; {
      smart-enter = smart-enter;
      drag = inputs.drag;
      gvfs = inputs.gvfs-yazi;
      git = git;
      starship = starship;
      full-border = full-border;
    };
    makePlugin = name: pluginDrv: {
      content = "";
      relPath = "${config.binName}-config/plugins/${name}.yazi";
      builder = ''
        mkdir -p "$(dirname "$2")"
        ln -s "${pluginDrv}" "$2"
      '';
      key = "plugin_${builtins.replaceStrings ["-"] ["_"] 

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
5 replies
@Joao-Queiroga
Comment options

@BirdeeHub
Comment options

@Joao-Queiroga
Comment options

Answer selected by Joao-Queiroga
@BirdeeHub
Comment options

@BirdeeHub
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants