Skip to content

Add pidgin wrapper and a patch to look for plugins - #4577

Closed
abbradar wants to merge 1 commit into
NixOS:masterfrom
abbradar:pidgin
Closed

abbradar wants to merge 1 commit into
NixOS:masterfrom
abbradar:pidgin

Conversation

@abbradar

Copy link
Copy Markdown
Member

Solves #992 . Is my wrapper approach good enough, or should I make it another way?

@jgeerds

jgeerds commented Oct 18, 2014

Copy link
Copy Markdown
Member

Great! Maybe we should send this patch upstream. What do you think?

@abbradar

Copy link
Copy Markdown
Member Author

I wanted to do this, just don't have time right now. I'll send a patch in ~10 hours.

18 октября 2014 г. 14:43:28 GMT+04:00, Jascha Geerds [email protected] пишет:

Great! Maybe we should send this patch upstream. What do you think?


Reply to this email directly or view it on GitHub:
#4577 (comment)

Простите за краткость, создано в K-9 Mail.

@abbradar

Copy link
Copy Markdown
Member Author

https://developer.pidgin.im/ticket/16402
I've tested this more extensively, this indeed fixes things (and doesn't segfault without this variable ^_^).

@DamienCassou

Copy link
Copy Markdown
Contributor

Is there any plugin that makes use of this environment variable?

@abbradar

Copy link
Copy Markdown
Member Author

This is not for being used in plugins, but rather in the wrapper. I now have this in configuration.nix:

      (pidginWrapper.override {
        plugins = [ pidginotr ];
      })

With no need for ugly workarounds from #992.

@DamienCassou

Copy link
Copy Markdown
Contributor

I'm trying this patch and it seems to work fine (with pidginotr at least). Thank you very much @abbradar.

Please someone merge it.

@DamienCassou

Copy link
Copy Markdown
Contributor

@geerds on #pidgin IRC, a guy told me he was not interested in the patch (but I don't know if the guy is a developer or not).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is buildInputs necessary here?

@abbradar

Copy link
Copy Markdown
Member Author

@lethalman Thanks for a catch, fixed.

@DamienCassou

Copy link
Copy Markdown
Contributor

It looks like that with this patch, pidgin disappeared from the Gnome launch menu. I can still launch pidgin from the command line, but not from the menu anymore.

@abbradar

Copy link
Copy Markdown
Member Author

I know what causes this; I'll fix this when I have more time (tomorrow, perhaps).

@abbradar

Copy link
Copy Markdown
Member Author

This should be better. I think it's ready for merge, but it would be cool if someone tested this again ( @DamienCassou ?)

@DamienCassou

Copy link
Copy Markdown
Contributor

Works perfectly now. Thank you. Please merge.

@vcunat

vcunat commented Oct 23, 2014

Copy link
Copy Markdown
Member

This does not look good, IMHO. My understanding: you rebuild the whole pidgin when changing plugins, and you wrap the original executable passed into the overriden derivation.

@abbradar

Copy link
Copy Markdown
Member Author

This is not so, I have a new expression pidginWrapper which gets overriden and is just a buildEnv inside. I've added a patch to pidgin to support that, though, but that's one-time rebuild.

@vcunat

vcunat commented Oct 23, 2014

Copy link
Copy Markdown
Member

Ah, sorry, I see now.

@vcunat

vcunat commented Oct 23, 2014

Copy link
Copy Markdown
Member

I was writing before reading thoroughly. It looks good, thanks for solving this! I'll push in a while, together with the security update.

@vcunat vcunat closed this in 2feaa02 Oct 23, 2014
@abbradar

Copy link
Copy Markdown
Member Author

Thanks!

@abbradar
abbradar deleted the pidgin branch October 23, 2014 11:04
@vcunat

vcunat commented Oct 23, 2014

Copy link
Copy Markdown
Member

For reference: 2feaa02#commitcomment-8273494

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants