about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/gnome/extensions/icon-hider/default.nix
blob: b5b2ae8ec74719b3845bd980e46e65a56b36abd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{ lib, stdenv, fetchFromGitHub, gnome }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-extension-icon-hider";
  version = "23";

  src = fetchFromGitHub {
    owner = "ikalnytskyi";
    repo = "gnome-shell-extension-icon-hider";
    rev = "v${version}";
    sha256 = "18c8zkdrmdbghqqz7b450vhgpykgz25mgigwn2nggcb2lxmvm9ks";
  };

  passthru = {
    extensionUuid = "icon-hider@kalnitsky.org";
    extensionPortalSlug = "icon-hider";
  };

  installPhase = ''
    runHook preInstall
    mkdir -p $out/share/gnome-shell/extensions
    cp -r "icon-hider@kalnitsky.org" $out/share/gnome-shell/extensions
    runHook postInstall
  '';

  meta = with lib; {
    description = "Icon Hider is a GNOME Shell extension for managing status area items";
    license = licenses.bsd3;
    maintainers = with maintainers; [ jonafato ];
    platforms = gnome.gnome-shell.meta.platforms;
    homepage = "https://github.com/ikalnytskyi/gnome-shell-extension-icon-hider";
    broken = versionAtLeast gnome.gnome-shell.version "3.32"; # Doesn't support 3.34
  };
}