nixpkgs/home/packages/purple-libnotify/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

44 lines
989 B
Nix

{
stdenv,
fetchFromGitHub,
callPackage,
meson,
ninja,
lib,
pidgin,
libnotify
}:
stdenv.mkDerivation rec {
pname = "purple-libnotify+";
version = "v2.99.2";
src = fetchFromGitHub {
owner = "sardemff7";
repo = "purple-libnotify-plus";
rev = version;
sha256 = "sha256-967VKfRjy5eQiFda5mqW3eLqvuPqWEDoIsixhZNNmsU=";
};
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
ninja
pidgin
libnotify
(callPackage ./../purple-events {})
];
meta = with lib; {
homepage = "https://github.com/sardemff7/purple-libnotify-plus/";
description = "Plugin for Pidgin which adds support for notifications via libnotify";
license = licenses.gpl3;
platforms = platforms.linux;
};
}