nixpkgs/pkgs/desktops/gnome-3/extensions/timepp/default.nix

29 lines
1,008 B
Nix

{ stdenv, fetchFromGitHub, gnome3 }:
stdenv.mkDerivation rec {
pname = "gnome-shell-extension-timepp";
version = "unstable-2019-03-30";
src = fetchFromGitHub {
owner = "zagortenay333";
repo = "timepp__gnome";
rev = "f90fb5573b37ac89fb57bf62e07d6d3bdb6a2c63";
sha256 = "0p6rsbm6lf61vzly775qkwc2rcjjl38bkqdxnv4sccqmw2wwclnp";
};
uuid = "timepp@zagortenay333";
installPhase = ''
runHook preInstall
mkdir -p $out/share/gnome-shell/extensions/${uuid}
cp -r . $out/share/gnome-shell/extensions/${uuid}
runHook postInstall
'';
meta = with stdenv.lib; {
description = "A todo.txt manager, time tracker, timer, stopwatch, pomodoro, and alarms gnome-shell extension.";
homepage = "https://github.com/zagortenay333/timepp__gnome";
license = licenses.gpl3;
maintainers = with maintainers; [ svsdep ];
broken = versionAtLeast gnome3.gnome-shell.version "3.32"; # Dosen't support 3.34 https://github.com/zagortenay333/timepp__gnome/issues/113
};
}