2018-07-30 08:05:26 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub
|
|
|
|
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "kwin-tiling";
|
2020-07-31 03:53:45 +01:00
|
|
|
version = "2.4";
|
2018-07-30 08:05:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kwin-scripts";
|
|
|
|
repo = "kwin-tiling";
|
|
|
|
rev = "v${version}";
|
2020-07-31 03:53:45 +01:00
|
|
|
sha256 = "095slpvipy0zcmbn0l7mdnl9g74jaafkr2gqi09b0by5fkvnbh37";
|
2018-07-30 08:05:26 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# This is technically not needed, but we might as well clean up
|
|
|
|
postPatch = ''
|
|
|
|
rm release.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
kcoreaddons kwindowsystem plasma-framework systemsettings
|
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
|
|
|
|
# 1. --global still installs to $HOME/.local/share so we use --packageroot
|
|
|
|
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
|
|
|
|
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/kwin-script-tiling.desktop
|
|
|
|
|
2020-09-03 15:03:35 +01:00
|
|
|
runHook postInstall
|
2018-07-30 08:05:26 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tiling script for kwin";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ peterhoeg ];
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
inherit (kwindowsystem.meta) platforms;
|
|
|
|
};
|
|
|
|
}
|