2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2019-10-05 14:08:58 +01:00
|
|
|
, fetchFromGitHub
|
2020-07-29 17:33:39 +01:00
|
|
|
, nix-update-script
|
2019-10-05 14:08:58 +01:00
|
|
|
, gnome3
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-mpris-indicator-button-unstable";
|
2020-03-22 03:19:07 +00:00
|
|
|
version = "2020-03-21";
|
2019-10-05 14:08:58 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JasonLG1979";
|
|
|
|
repo = "gnome-shell-extension-mpris-indicator-button";
|
2020-03-22 03:19:07 +00:00
|
|
|
rev = "de54160e7d905b8c48c0fe30a437f7c51efc1aa3";
|
2020-06-02 21:44:52 +01:00
|
|
|
sha256 = "0n5qlx51fxjq1nn10zhdwfy905j20sv7pwh2jc6fns757ac4pwwk";
|
2019-10-05 14:08:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
uuid = "mprisindicatorbutton@JasonLG1979.github.io";
|
|
|
|
|
|
|
|
installPhase = ''
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook preInstall
|
2019-10-05 14:08:58 +01:00
|
|
|
mkdir -p $out/share/gnome-shell/extensions
|
|
|
|
cp -r ${uuid} $out/share/gnome-shell/extensions
|
2020-07-18 12:06:33 +01:00
|
|
|
runHook postInstall
|
2019-10-05 14:08:58 +01:00
|
|
|
'';
|
|
|
|
|
2020-07-29 17:33:39 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = "gnomeExtensions.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-10-05 14:08:58 +01:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|