2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, fetchzip, gnome, gettext, glib }:
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-shell-extension-clock-override";
|
|
|
|
version = "12";
|
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "https://extensions.gnome.org/extension-data/clock-overridegnomeshell.kryogenix.org.v${version}.shell-extension.zip";
|
|
|
|
sha256 = "1cyaszks6bwnbgacqsl1pmr24mbj05mad59d4253la9am8ibb4m6";
|
|
|
|
stripRoot = false;
|
|
|
|
};
|
|
|
|
|
2021-07-14 22:03:04 +00:00
|
|
|
passthru = {
|
|
|
|
extensionUuid = "clock-override@gnomeshell.kryogenix.org";
|
|
|
|
extensionPortalSlug = "clock-override";
|
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ gettext glib ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
glib-compile-schemas --strict --targetdir=schemas schemas
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2021-07-14 22:03:04 +00:00
|
|
|
mkdir -p "$out/share/gnome-shell/extensions/clock-override@gnomeshell.kryogenix.org"
|
|
|
|
cp -r {convenience.js,extension.js,format.js,locale,metadata.json,prefs.js,schemas} "$out/share/gnome-shell/extensions/clock-override@gnomeshell.kryogenix.org"
|
2021-01-15 22:18:51 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
meta = with lib; {
|
2021-01-15 22:18:51 +00:00
|
|
|
description = "Customize the date and time format displayed in clock in the top bar in GNOME Shell";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rhoriguchi ];
|
|
|
|
homepage = "https://github.com/stuartlangridge/gnome-shell-clock-override";
|
2021-05-20 23:08:51 +00:00
|
|
|
broken = versionOlder gnome.gnome-shell.version "3.18";
|
2021-01-15 22:18:51 +00:00
|
|
|
};
|
|
|
|
}
|