nix-overlay/pkgs/gnome-shell-extensions/hibernate-status.nix

30 lines
938 B
Nix
Raw Permalink Normal View History

2021-06-01 19:42:42 +02:00
{ stdenv, lib, fetchzip }:
2020-12-29 16:32:11 +01:00
stdenv.mkDerivation rec {
2021-06-01 19:42:42 +02:00
pname = "hibernate-status";
version = "1.10";
2020-12-29 16:32:11 +01:00
src = fetchzip {
2021-06-01 19:42:42 +02:00
url = "https://github.com/arelange/gnome-shell-extension-hibernate-status/archive/refs/tags/v${version}.zip";
sha256 = "0r6jn5pkyw7km32migb86xdq32w2vybbbrspd4wc0dzgadk2ii7w";
2020-12-29 16:32:11 +01:00
stripRoot = false;
};
uuid = "hibernate-status@dromi";
dontBuild = true;
installPhase = ''
2021-06-01 19:42:42 +02:00
cd gnome-shell-extension-hibernate-status-${version}
2020-12-29 16:32:11 +01:00
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}
'';
2021-06-01 19:42:42 +02:00
meta = with lib; {
2020-12-29 16:32:11 +01:00
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;
};
}