diff --git a/default.nix b/default.nix index a329867..e03d31a 100644 --- a/default.nix +++ b/default.nix @@ -15,7 +15,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 {}; + hibernate-status = callPackage ./pkgs/gnome-shell-extensions/hibernate-status.nix {}; noannoyance = callPackage ./pkgs/gnome-shell-extensions/noannoyance.nix {}; bluetooth-quick-connect = callPackage ./pkgs/gnome-shell-extensions/bluetooth-quick-connect.nix { }; }; diff --git a/pkgs/gnome-shell-extensions/hibernate-button.nix b/pkgs/gnome-shell-extensions/hibernate-status.nix similarity index 63% rename from pkgs/gnome-shell-extensions/hibernate-button.nix rename to pkgs/gnome-shell-extensions/hibernate-status.nix index 0c978eb..c5694ec 100644 --- a/pkgs/gnome-shell-extensions/hibernate-button.nix +++ b/pkgs/gnome-shell-extensions/hibernate-status.nix @@ -1,12 +1,12 @@ -{ stdenv, fetchzip }: +{ stdenv, lib, fetchzip }: stdenv.mkDerivation rec { - pname = "hibernate-button"; - version = "20"; + pname = "hibernate-status"; + version = "1.10"; src = fetchzip { - url = "https://extensions.gnome.org/extension-data/hibernate-statusdromi.v${version}.shell-extension.zip"; - sha256 = "1106s8pimsamfhjxwnyjb5hvcz0jxf7k416d9w5m71n1i0sgfnnn"; + url = "https://github.com/arelange/gnome-shell-extension-hibernate-status/archive/refs/tags/v${version}.zip"; + sha256 = "0r6jn5pkyw7km32migb86xdq32w2vybbbrspd4wc0dzgadk2ii7w"; stripRoot = false; }; @@ -15,12 +15,13 @@ stdenv.mkDerivation rec { dontBuild = true; installPhase = '' + cd gnome-shell-extension-hibernate-status-${version} 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; { + meta = with 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;