summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/extensions/drop-down-terminal/default.nix
blob: fb71320159449a9ef7428cfc1498010662a6a2bd (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
{ stdenv, fetchFromGitHub, substituteAll, gjs, vte, gnome3 }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-extension-drop-down-terminal";
  version = "unstable-2020-03-25";

  src = fetchFromGitHub {
    owner = "zzrough";
    repo = "gs-extensions-drop-down-terminal";
    rev = "a59669afdb395b3315619f62c1f740f8b2f0690d";
    sha256 = "0igfxgrjdqq6z6xg4rsawxn261pk25g5dw2pm3bhwz5sqsy4bq3i";
  };

  uuid = "drop-down-terminal@gs-extensions.zzrough.org";

  patches = [
    (substituteAll {
      src = ./fix_vte_and_gjs.patch;
      inherit gjs vte;
    })
  ];

  installPhase = ''
    mkdir -p $out/share/gnome-shell/extensions
    cp -r ${uuid} $out/share/gnome-shell/extensions/
  '';

  meta = with stdenv.lib; {
    description = "Configurable drop down terminal shell";
    license = licenses.gpl3;
    maintainers = with maintainers; [ ericdallo ];
    homepage = "https://github.com/zzrough/gs-extensions-drop-down-terminal";
  };
}