Merge pull request #68477 from peterhoeg/p/tiling

kwin-tiling: init at 2.2
This commit is contained in:
Peter Hoeg 2019-09-11 15:58:50 +08:00 committed by GitHub
commit 6e1218441f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ lib, mkDerivation, fetchFromGitHub
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
mkDerivation rec {
pname = "kwin-tiling";
version = "2.2";
src = fetchFromGitHub {
owner = "kwin-scripts";
repo = "kwin-tiling";
rev = "v${version}";
sha256 = "1sx64xv7g9yh3j26zxxrbndv79xam9jq0vs00fczgfv2n0m7j7bl";
};
# 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
runHook postInstalll
'';
meta = with lib; {
description = "Tiling script for kwin";
license = licenses.gpl2;
maintainers = with maintainers; [ peterhoeg ];
inherit (src.meta) homepage;
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -22730,6 +22730,8 @@ in
plasma-workspace-wallpapers polkit-kde-agent powerdevil sddm-kcm
systemsettings user-manager xdg-desktop-portal-kde;
kwin-tiling = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/tiling.nix { };
### SCIENCE
### SCIENCE/CHEMISTY