Setting up plugins with post-install scripts #368
-
|
For Firenvim, the setup process is rather unique compared to all the other plugins I've ever installed. There is a post-install script executed by Is this something that nixCats can gracefully handle in some way? I think it could, but I'm not sure if an approach is documented anywhere. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Well, usually you would make a derivation which runs that. You would use the default plugin overlay thing or mkPlugin, and then use overrideAttrs to add the step to postInstall hook probably. Does |
Beta Was this translation helpful? Give feedback.
Well, you could add some lua code to your config which checks existence of a file, runs it, and makes a file somewhere saying it has been ran (or if you can find one of the files it adds, use that)
If you wanted to add it to the plugin itself, you could use
.overrideAttrsto add a file to$out/plugin/something.luain the postInstall hook or something, which will run at runtime and do the same thing?