69698ec11c
* gnome3: only maintain single GNOME 3 package set GNOME 3 was split into 3.10 and 3.12 in #2694. Unfortunately, we barely have the resources to update a single version of GNOME. Maintaining multiple versions just does not make sense. Additionally, it makes viewing history using most Git tools bothersome. This commit renames `pkgs/desktops/gnome-3/3.24` to `pkgs/desktops/gnome-3`, removes the config variable for choosing packageset (`environment.gnome3.packageSet`), updates the hint in maintainer script, and removes the `gnome3_24` derivation from `all-packages.nix`. Closes: #29329 * maintainers/scripts/gnome: Use fixed GNOME 3 directory Since we now allow only a single GNOME 3 package set, specifying the working directory is not necessary. This commit sets the directory to `pkgs/desktops/gnome-3`.
43 lines
1.3 KiB
Nix
43 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, glib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0.1";
|
|
basename = "pidgin-im-gnome-shell-extension";
|
|
name = "${basename}-${version}";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muffinmad";
|
|
repo = "${basename}";
|
|
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"
|
|
|
|
schemas_dir="$share_dir/gsettings-schemas/${name}/glib-2.0/schemas"
|
|
mkdir -p "$schemas_dir"
|
|
mv schemas/* "$schemas_dir" # fix Emacs syntax highlighting: */
|
|
${glib.dev}/bin/glib-compile-schemas "$schemas_dir"
|
|
|
|
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;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|