2016-09-18 20:35:23 +01:00
|
|
|
{ stdenv, fetchFromGitHub, glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-01 10:25:30 +01:00
|
|
|
pname = "gnome-shell-extension-pidgin-im-integration";
|
2016-09-18 20:35:23 +01:00
|
|
|
version = "1.0.1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muffinmad";
|
2019-08-01 10:25:30 +01:00
|
|
|
repo = "pidgin-im-gnome-shell-extension";
|
2016-09-18 20:35:23 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1567s2sfqig4jw0nrn134f5vkx0yq31q044grv3xk4vpl1f3z2lr";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ glib ];
|
|
|
|
|
|
|
|
configurePhase = "";
|
|
|
|
buildPhase = "";
|
|
|
|
installPhase = ''
|
|
|
|
share_dir="$prefix/share"
|
|
|
|
extensions_dir="$share_dir/gnome-shell/extensions/pidgin@muffinmad"
|
|
|
|
mkdir -p "$extensions_dir"
|
|
|
|
mv *.js metadata.json dbus.xml gnome-shell-extension-pidgin.pot "$extensions_dir"
|
|
|
|
|
2019-08-01 10:25:30 +01:00
|
|
|
schemas_dir="$share_dir/gsettings-schemas/${pname}-${version}/glib-2.0/schemas"
|
2016-09-18 20:35:23 +01:00
|
|
|
mkdir -p "$schemas_dir"
|
|
|
|
mv schemas/* "$schemas_dir" # fix Emacs syntax highlighting: */
|
2018-08-30 18:45:19 +01:00
|
|
|
glib-compile-schemas "$schemas_dir"
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
locale_dir="$share_dir/locale"
|
|
|
|
mkdir -p "$locale_dir"
|
|
|
|
mv locale/* $locale_dir # fix Emacs syntax highlighting: */
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/muffinmad/pidgin-im-gnome-shell-extension;
|
|
|
|
description = "Make Pidgin IM conversations appear in the Gnome Shell message tray";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
2017-01-31 10:00:14 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|