Skip to content

Commit 0b1c879

Browse files
emanueleperuffoMic92
authored andcommittedJul 3, 2017
gnomeExtensions.caffeine: init at revision unstable-2017-06-21 (#26901)
Caffeine extension for Gnome 3
1 parent 7ec7aa0 commit 0b1c879

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{ stdenv, fetchFromGitHub, glib, gettext, bash }:
2+
3+
stdenv.mkDerivation rec {
4+
name = "gnome-shell-extension-caffeine-${version}";
5+
version = "unstable-2017-06-21";
6+
7+
src = fetchFromGitHub {
8+
owner = "eonpatapon";
9+
repo = "gnome-shell-extension-caffeine";
10+
rev = "ce0d0d4d3a9fed4b35b82cf59609a00502862271";
11+
sha256 = "01gf9c8nhhm78iakqf30900y6lywxks1pm5h2cs0jvp8d3ygd7sd";
12+
};
13+
14+
uuid = "caffeine@patapon.info";
15+
16+
nativeBuildInputs = [
17+
glib gettext
18+
];
19+
20+
buildPhase = ''
21+
${bash}/bin/bash ./update-locale.sh
22+
${glib.dev}/bin/glib-compile-schemas --strict --targetdir=caffeine@patapon.info/schemas/ caffeine@patapon.info/schemas
23+
'';
24+
25+
installPhase = ''
26+
mkdir -p $out/share/gnome-shell/extensions
27+
cp -r ${uuid} $out/share/gnome-shell/extensions
28+
'';
29+
30+
meta = with stdenv.lib; {
31+
description = "Fill the cup to inhibit auto suspend and screensaver";
32+
license = licenses.gpl2;
33+
maintainers = with maintainers; [ eperuffo ];
34+
homepage = https://github.com/eonpatapon/gnome-shell-extension-caffeine;
35+
};
36+
}

‎pkgs/top-level/all-packages.nix

+1
Original file line numberDiff line numberDiff line change
@@ -17564,6 +17564,7 @@ with pkgs;
1756417564
gnome3 = gnome3_22;
1756517565

1756617566
gnomeExtensions = {
17567+
caffeine = callPackage ../desktops/gnome-3/extensions/caffeine { };
1756717568
dash-to-dock = callPackage ../desktops/gnome-3/extensions/dash-to-dock { };
1756817569
};
1756917570

1 commit comments

Comments
 (1)

bjornfor commented on Jul 9, 2017

@bjornfor
Contributor

FYI, this is how Nix handles "unstable" in the version:

nix-repl> builtins.parseDrvName gnomeExtensions.caffeine.name
{ name = "gnome-shell-extension-caffeine-unstable"; version = "2017-06-21"; }
Please sign in to comment.