I make a pull request to get them added to Nixpkgs
I only add them to my flake
What I’m wondering is how to test this in each case. I mean in case 1., how can I check if my contrib is working, especially, how can I check that using this option will lead me to the expected result ?
And if I’m going case 2. then I have the same issue plus the question of how I can add roundcube plugins to nixpkgs directly from my flake ?
You should be able to test that your plugin definition works correctly that way. When you’re ready to make the PR, add the directory with your plugin to Nixpkgs, and add a corresponding line to pkgs/servers/roundcube/plugins/plugins.nix.
Well that does answer at least part of my question, thanks for that. I guess what I was wondering is also how to have a test environment to try that before deploying it somewhere: what is the process for a maintainer to test its contribs without polluting his own env.
There are different levels of testing. Being a lazy boy (in this specific instance) I’d probably just dump my current database, spin up a new one with an import then run the service pointing at the new database, and take it for a spin. If I did that more than twice I’d probably make a script for it. If I ended up doing it a bunch I’d probably make a vm variant that I could test using nixos-rebuild build-vm. Then if I were doing it all the time, I’d probably finally learn how the nixos testing harnesses worked and / or learn how the automatic testing for the specific service worked.