2024-08-16 06:42:00 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
kpackage,
|
|
|
|
kwin,
|
|
|
|
zip,
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "kzones";
|
2024-09-11 15:00:26 +00:00
|
|
|
version = "0.9";
|
2024-08-16 06:42:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gerritdevriese";
|
|
|
|
repo = "kzones";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-09-11 15:00:26 +00:00
|
|
|
hash = "sha256-xqTQiL+7T6p+Y86eC5InAk6waYoM82iFoLflkN6/dG8=";
|
2024-08-16 06:42:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
kpackage
|
|
|
|
zip
|
|
|
|
];
|
|
|
|
buildInputs = [ kwin ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
|
|
|
buildFlags = [ "build" ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
kpackagetool6 --type=KWin/Script --install=kzones.kwinscript --packageroot=$out/share/kwin/scripts
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "KDE KWin Script for snapping windows into zones";
|
|
|
|
homepage = "https://github.com/gerritdevriese/kzones/";
|
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ k900 ];
|
|
|
|
platforms = lib.platforms.all;
|
|
|
|
};
|
|
|
|
})
|