kde-modernclock: init at 0.2.0-unstable-2024-03-07

Modern Clock is a minimal clock/date plasmoid for KDE Plasma 6.
Pure QML — installs package/ to $out/share/plasma/plasmoids.

https://github.com/Prayag2/kde_modernclock

Assisted-by: opencode muse-spark-1.2-contributor-free
This commit is contained in:
Subham Roy
2026-08-26 21:37:15 -07:00
parent 74845caa51
commit 70ce253fb8

View File

@@ -0,0 +1,45 @@
{
lib,
stdenvNoCC,
fetchFromGitHub,
nix-update-script,
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "kde-modernclock";
version = "0.2.0-unstable-2024-03-07";
src = fetchFromGitHub {
owner = "Prayag2";
repo = "kde_modernclock";
rev = "5c86f0f23d2646be7e9872fc5e769bdce259af92";
hash = "sha256-+FqTNdMbWXp27ZdfcgQvLE+yr2z6KxXbIIPpQTffEIE=";
};
strictDeps = true;
__structuredAttrs = true;
dontWrapQtApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/plasma/plasmoids/com.github.prayag2.modernclock
cp -r package/* $out/share/plasma/plasmoids/com.github.prayag2.modernclock/
runHook postInstall
'';
passthru.updateScript = nix-update-script {
extraArgs = [ "--version=unstable" ];
};
meta = {
description = "Modern clock widget for KDE Plasma desktop";
homepage = "https://github.com/Prayag2/kde_modernclock";
changelog = "https://github.com/Prayag2/kde_modernclock/releases";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ subham-roy ];
platforms = lib.platforms.linux;
};
})