summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/extensions/no-title-bar/default.nix
blob: c876b22c12c1db4970e8e2a003a0b04747f1d7c7 (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
35
36
{ stdenv, fetchFromGitHub, substituteAll, glib, gettext, xorg }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-extension-no-title-bar";
  version = "9";

  src = fetchFromGitHub {
    owner = "franglais125";
    repo = "no-title-bar";
    rev = "v${version}";
    sha256 = "02zm61fg40r005fn2rvgrbsz2hbcsmp2hkhyilqbmpilw35y0nbq";
  };

  nativeBuildInputs = [
    glib gettext
  ];

  patches = [
    (substituteAll {
      src = ./fix-paths.patch;
      xprop = "${xorg.xprop}/bin/xprop";
      xwininfo = "${xorg.xwininfo}/bin/xwininfo";
    })
  ];

  makeFlags = [ "INSTALLBASE=$(out)/share/gnome-shell/extensions" ];

  meta = with stdenv.lib; {
    description = "Integrates maximized windows with the top panel";
    homepage = "https://github.com/franglais125/no-title-bar";
    license = licenses.gpl2;
    broken = true; # https://github.com/franglais125/no-title-bar/issues/114
    maintainers = with maintainers; [ jonafato svsdep ];
    platforms = platforms.linux;
  };
}