1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 glib,
6 gnome-shell,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "gnome-shell-extension-pidgin-im-integration";
11 version = "32";
12
13 src = fetchFromGitHub {
14 owner = "muffinmad";
15 repo = "pidgin-im-gnome-shell-extension";
16 rev = "v${version}";
17 sha256 = "1jyg8r0s1v83sgg6y0jbsj2v37mglh8rvd8vi27fxnjq9xmg8kpc";
18 };
19
20 dontConfigure = true;
21 dontBuild = true;
22
23 installPhase = ''
24 runHook preInstall
25 share_dir="$prefix/share"
26 extensions_dir="$share_dir/gnome-shell/extensions/pidgin@muffinmad"
27 mkdir -p "$extensions_dir"
28 mv *.js metadata.json dbus.xml schemas locale "$extensions_dir"
29 runHook postInstall
30 '';
31
32 passthru = {
33 extensionUuid = "pidgin@muffinmad";
34 extensionPortalSlug = "pidgin-im-integration";
35 };
36
37 meta = with lib; {
38 homepage = "https://github.com/muffinmad/pidgin-im-gnome-shell-extension";
39 description = "Make Pidgin IM conversations appear in the Gnome Shell message tray";
40 license = licenses.gpl2;
41 platforms = platforms.linux;
42 maintainers = [ ];
43 broken = versionAtLeast gnome-shell.version "3.32"; # Doesn't support 3.34
44 };
45}