summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/extensions/tilingnome/default.nix
blob: 60ca1dcbef37981f874bf5eec2ea2ab49ac48590 (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, lib, fetchFromGitHub, glib, gnome3 }:

stdenv.mkDerivation rec {
  pname = "gnome-shell-extension-tilingnome-unstable";
  version = "unstable-2019-09-19";

  src = fetchFromGitHub {
    owner = "rliang";
    repo = "gnome-shell-extension-tilingnome";
    rev = "f401c20c9721d85e6b3e30d1e822a200db370407";
    sha256 = "1hq9g9bxqpzqrdj9zm0irld8r6q4w1m4b00jya7wsny8rzb1s0y2";
  };

  nativeBuildInputs = [ glib ];

  buildPhase = ''
    glib-compile-schemas .
  '';

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

  uuid = "tilingnome@rliang.github.com";

  meta = with stdenv.lib; {
    description = "Tiling window management for GNOME Shell";
    license = licenses.gpl2;
    maintainers = with maintainers; [ benley ];
    homepage = "https://github.com/rliang/gnome-shell-extension-tilingnome";
    platforms = gnome3.gnome-shell.meta.platforms;
  };
}