hibernate-button: Init at 20

This commit is contained in:
madmaurice 2020-12-29 16:32:11 +01:00
parent 643efa4730
commit b59a5fac8e
2 changed files with 29 additions and 0 deletions

View file

@ -10,5 +10,6 @@ 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 {};
};
}

View file

@ -0,0 +1,28 @@
{ stdenv, fetchzip }:
stdenv.mkDerivation rec {
pname = "hibernate-button";
version = "20";
src = fetchzip {
url = "https://extensions.gnome.org/extension-data/hibernate-statusdromi.v${version}.shell-extension.zip";
sha256 = "1106s8pimsamfhjxwnyjb5hvcz0jxf7k416d9w5m71n1i0sgfnnn";
stripRoot = false;
};
uuid = "hibernate-status@dromi";
dontBuild = true;
installPhase = ''
mkdir -p $out/share/gnome-shell/extensions/${uuid}
cp confirmDialog.js extension.js metadata.json prefs.js $out/share/gnome-shell/extensions/${uuid}
cp -r schemas $out/share/gnome-shell/extensions/${uuid}
'';
meta = with stdenv.lib; {
description = "Gnome Shell extension that adds a hibernate/hybrid suspend button in Status menu";
homepage = "https://github.com/arelange/gnome-shell-extension-hibernate-status";
license = licenses.gpl2;
};
}