nixpkgs/home/packages/purple-events/default.nix
Daniel Siepmann 6d5f3cc626
Initial add Pidgin for IM
I've added the following myself:

* mattermost
* purple-signald (waiting for https://github.com/NixOS/nixpkgs/issues/188384)
* purple-events
* purple-libnotify

and added slack from nixpkgs.
I'm also trying to make signal integration work.

Not sure whether I'll keep pidgin, as I expect video calls from within
slack not to work.
But would be cool to have a single open source messenger instead of x
instances of chromium as wrapper around closed source web applications.
2022-08-26 13:19:09 +02:00

42 lines
943 B
Nix

{
stdenv,
fetchFromGitHub,
meson,
ninja,
lib,
pidgin,
libnotify
}:
stdenv.mkDerivation rec {
pname = "purple-events";
version = "v0.99.2";
src = fetchFromGitHub {
owner = "sardemff7";
repo = "purple-events";
rev = version;
sha256 = "sha256-np1Wo9xqRclBY24Ww2WnQ1lxKEsRsM16BxinkfyPgKc=";
};
postPatch = ''
substituteInPlace meson.build \
--replace "purple.get_variable('datadir')" "'${placeholder "out"}/share'"
substituteInPlace meson.build \
--replace "purple.get_variable('plugindir')" "'${placeholder "out"}/lib/purple-2'"
'';
buildInputs = [
meson
pidgin
libnotify
ninja
];
meta = with lib; {
homepage = "https://github.com/sardemff7/purple-events";
description = "purple-events allows a fine-grained control over libpurple events (buddy signing on, new message).";
license = licenses.gpl3;
platforms = platforms.linux;
};
}