@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "gnome-shell-extension-disable-unredirect";
5+ version = "unstable-2021-01-17";
6+
7+ src = fetchFromGitHub {
8+ owner = "kazysmaster";
9+ repo = "gnome-shell-extension-disable-unredirect";
10+ rev = "2ecb2f489ea3316b77d04f03a0c885f322c67e79";
11+ sha256 = "1rjyrg8qya0asndxr7189a9npww0rcxk02wkxrxjy7fdp5m89p7y";
12+ };
13+
14+ uuid = "unredirect@vaina.lt";
15+
16+ installPhase = ''
17+ runHook preInstall
18+
19+ mkdir -p $out/share/gnome-shell/extensions
20+ cp -R ${uuid} $out/share/gnome-shell/extensions/${uuid}
21+
22+ runHook postInstall
23+ '';
24+
25+ meta = with lib; {
26+ description = "Disables unredirect fullscreen windows in gnome-shell to avoid tearing";
27+ license = licenses.gpl3Only;
28+ homepage = "https://github.com/kazysmaster/gnome-shell-extension-disable-unredirect";
29+ maintainers = with maintainers; [ eduardosm ];
30+ };
31+}