hibernate-button: Init at 20
This commit is contained in:
parent
643efa4730
commit
b59a5fac8e
2 changed files with 29 additions and 0 deletions
|
@ -10,5 +10,6 @@ rec {
|
||||||
|
|
||||||
gnomeExtensions = (super.gnomeExtensions or {}) // {
|
gnomeExtensions = (super.gnomeExtensions or {}) // {
|
||||||
hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {};
|
hide-activities = callPackage ./pkgs/gnome-shell-extensions/hide-activities.nix {};
|
||||||
|
hibernate-button = callPackage ./pkgs/gnome-shell-extensions/hibernate-button.nix {};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
28
pkgs/gnome-shell-extensions/hibernate-button.nix
Normal file
28
pkgs/gnome-shell-extensions/hibernate-button.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue