Merge pull request #146753 from rhoriguchi/gnomeExtensions.caffeine

This commit is contained in:
piegames 2021-11-22 00:55:42 +01:00 committed by GitHub
commit 4a27ec097b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 44 deletions

View File

@ -1,43 +0,0 @@
{ lib, stdenv, fetchFromGitHub, glib, gettext, bash }:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-caffeine";
version = "38";
src = fetchFromGitHub {
owner = "eonpatapon";
repo = "gnome-shell-extension-caffeine";
rev = "v${version}";
sha256 = "0dyagnjmk91h96xr98mc177c473bqpxcv86qf6g3kyh3arwa9shs";
};
passthru = {
extensionPortalSlug = "caffeine";
extensionUuid = "caffeine@patapon.info";
};
nativeBuildInputs = [
glib gettext
];
buildPhase = ''
runHook preBuild
${bash}/bin/bash ./update-locale.sh
glib-compile-schemas --strict --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas
runHook postBuild
'';
installPhase = ''
runHook preInstall
mkdir -p $out/share/gnome-shell/extensions
cp -r "caffeine@patapon.info" $out/share/gnome-shell/extensions
runHook postInstall
'';
meta = with lib; {
description = "Fill the cup to inhibit auto suspend and screensaver";
license = licenses.gpl2Only;
maintainers = with maintainers; [ eperuffo ];
homepage = "https://github.com/eonpatapon/gnome-shell-extension-caffeine";
};
}

View File

@ -11,6 +11,10 @@
# the upstream repository's sources.
super: super // {
"caffeine@patapon.info" = super."caffeine@patapon.info".overrideAttrs (old: {
meta.maintainers = with lib.maintainers; [ eperuffo ];
});
"dash-to-dock@micxgx.gmail.com" = super."dash-to-dock@micxgx.gmail.com".overrideAttrs (old: {
meta.maintainers = with lib.maintainers; [ eperuffo jtojnar rhoriguchi ];
});

View File

@ -1,7 +1,6 @@
{ callPackage }:
{
"arcmenu@arcmenu.com" = callPackage ./arcmenu { };
"caffeine@patapon.info" = callPackage ./caffeine { };
"clock-override@gnomeshell.kryogenix.org" = callPackage ./clock-override { };
"dash-to-panel@jderose9.github.com" = callPackage ./dash-to-panel { };
"drop-down-terminal@gs-extensions.zzrough.org" = callPackage ./drop-down-terminal { };