blob: 4bf4b7508176a330a4f4fe071a903ade288e3c98 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{ stdenv
, fetchFromGitHub
, nix-update-script
, gnome3
}:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-mpris-indicator-button-unstable";
version = "2020-03-21";
src = fetchFromGitHub {
owner = "JasonLG1979";
repo = "gnome-shell-extension-mpris-indicator-button";
rev = "de54160e7d905b8c48c0fe30a437f7c51efc1aa3";
sha256 = "0n5qlx51fxjq1nn10zhdwfy905j20sv7pwh2jc6fns757ac4pwwk";
};
uuid = "mprisindicatorbutton@JasonLG1979.github.io";
installPhase = ''
runHook preInstall
mkdir -p $out/share/gnome-shell/extensions
cp -r ${uuid} $out/share/gnome-shell/extensions
runHook postInstall
'';
passthru = {
updateScript = nix-update-script {
attrPath = "gnomeExtensions.${pname}";
};
};
meta = with stdenv.lib; {
description = "A simple MPRIS indicator button for GNOME Shell";
license = licenses.gpl3;
maintainers = with maintainers; [ worldofpeace ];
platforms = gnome3.gnome-shell.meta.platforms;
homepage = "https://github.com/JasonLG1979/gnome-shell-extension-mpris-indicator-button";
broken = versionOlder gnome3.gnome-shell.version "3.34";
};
}
|