diff options
Diffstat (limited to 'pkgs/desktops/gnome/extensions/window-corner-preview/default.nix')
-rw-r--r-- | pkgs/desktops/gnome/extensions/window-corner-preview/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome/extensions/window-corner-preview/default.nix b/pkgs/desktops/gnome/extensions/window-corner-preview/default.nix new file mode 100644 index 0000000000000..0e71345bb8a7b --- /dev/null +++ b/pkgs/desktops/gnome/extensions/window-corner-preview/default.nix @@ -0,0 +1,31 @@ +{ lib, stdenv, fetchFromGitHub, gnome }: + +stdenv.mkDerivation rec { + pname = "gnome-shell-extension-window-corner-preview"; + version = "unstable-2019-04-03"; + + src = fetchFromGitHub { + owner = "medenagan"; + repo = "window-corner-preview"; + rev = "a95bb1389d94474efab7509aac592fb58fff6006"; + sha256 = "03v18j9l0fb64xrg3swf1vcgl0kpgwjlp8ddn068bpvghrsvgfah"; + }; + + dontBuild = true; + + uuid = "window-corner-preview@fabiomereu.it"; + installPhase = '' + runHook preInstall + mkdir -p $out/share/gnome-shell/extensions + cp -r ${uuid} $out/share/gnome-shell/extensions + runHook postInstall + ''; + + meta = with lib; { + description = "GNOME Shell extension showing a video preview on the corner of the screen"; + license = licenses.mit; + maintainers = with maintainers; [ jtojnar ]; + homepage = "https://github.com/medenagan/window-corner-preview"; + broken = lib.versionAtLeast gnome.gnome-shell.version "3.32"; # Doesn't support 3.34 + }; +} |