From df3743fe58dc148b1212533e7ff0f4a62b350cb1 Mon Sep 17 00:00:00 2001 From: MadMaurice Date: Tue, 5 Jan 2021 18:41:12 +0100 Subject: [PATCH] noannoyance: Init on 2020.01.05 --- default.nix | 1 + pkgs/gnome-shell-extensions/noannoyance.nix | 28 +++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/gnome-shell-extensions/noannoyance.nix diff --git a/default.nix b/default.nix index 1af312e..1afb98d 100644 --- a/default.nix +++ b/default.nix @@ -11,6 +11,7 @@ rec { gnomeExtensions = (super.gnomeExtensions or {}) // { hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {}; hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.nix {}; + noannoyance = callPackage ./pkgs/gnome-shell-extensions/noannoyance.nix {}; }; flatery-icon-theme = callPackage ./pkgs/icon-theme/flatery-icon-theme.nix {}; diff --git a/pkgs/gnome-shell-extensions/noannoyance.nix b/pkgs/gnome-shell-extensions/noannoyance.nix new file mode 100644 index 0000000..9ecd539 --- /dev/null +++ b/pkgs/gnome-shell-extensions/noannoyance.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + pname = "noannoyance"; + version = "2021.01.05"; + + src = fetchFromGitHub { + owner = "BjoernDaase"; + repo = "noannoyance"; + rev = "f6e76916336aee2f7c4141796f3c40c870d2b347"; + sha256 = "1iy3nif8rjjcwf83fg9ds93fi7vmhliynmlwqnx036s3msmxvgs3"; + }; + + uuid = "noannoyance@daase.net"; + + dontBuild = true; + + installPhase = '' + mkdir -p $out/share/gnome-shell/extensions/${uuid} + cp metadata.json extension.js $out/share/gnome-shell/extensions/${uuid} + ''; + + meta = with stdenv.lib; { + description = "Removes the 'Window is ready' notification and puts the window into focus"; + homepage = "https://github.com/BjoernDaase/noannoyance"; + license = licenses.gpl2; + }; +}